i have three models associated by has_many and through, and i need to make a form for them.
the association is like, a user has many projects; a project has many tasks; a user has many tasks through projects.
what i want to do is a user can create…
I got error from browser after sign up with email and password.
class UserStepsController < ApplicationController
steps :personal
def show
@user = current_user
render_wizard
end
def update
@user = current_user
…
Hi everybody I'm trying to use wicked pdf in rails 4.
I follow this page https://github.com/mileszs/wicked_pdf.
I did:
gem install wicked pdf
Then I tried the command
rails g wicked_pdf
### And got "Could not find the generator"
I'm trying to…
I'm exporting a table using wicked pdf
here is the controller that use wicked
def print_invoice
respond_to do |format|
format.pdf{
send_data render(
####### WICKED CODE ######
:pdf => "invoices",
:margin =>…
I've been following step by step example for wicked gem https://github.com/schneems/wicked/wiki/Building-Partial-Objects-Step-by-Step but I'm struggling to make it work
routes.rb
post '/trips/building/build(.:format)', :to =>…
When a user signs up for my site, they automatically hit a signup wizard (using the WickedWizard gem). The information they input creates a Finances model, which belongs_to the User model. The User model has_one Finance.
Currently when a user…
I have problem with using wicked inside namespace. I have namespace "partners", in this namespace I can add cars so my routes looks like this:
namespace :partners do
resources :cars
resources :car_steps
end
I have controller cars:
…
I am developing an application using these three gem I wrote in the title of this post. I set up devise with the confirmable module(?), so when a user creates an account with its email/password, it receives a confirmation email. If the user sign up…
In rails app I use wicked gem to create wizard(https://github.com/schneems/wicked/)
I want protect my wizard and render only concrete step after check.
In fact render_wizard method can accept only instance:
render_wizard @product
Is it possible…
I looked at Wicked documentation, but can't seem to figure out my problem.
I have a multipage wizard form, and on this page I have 4 buttons.
I need each button to update a specific attribute in my model, and also submit the form at the same time.
I…
I have started a rails app and setup devise with Group as the model, not user. I'm trying to extend an after registration wizard to update some information about the group. So far I can register, go to the first step after registration, but when I…
I have watched Wicked forms with wizard and I am trying to do my own form, I have the following:
Employees_controller.rb
class EmployeesController < ApplicationController
def index
@employees = Employee.all
end
def show
…
I am not quite sure on how to use the Wicked::FIRST_STEP constant.
The way I understand the documentation I would think that it will point to the first step in the steps array, but what I actually get is the hardcoded string: "wicked_first" (as…
I'm trying to build a nested form, but I can't get it to work. I'm using rails 5.2, devise and wicked wizard.
I have tried to use the cocoon gem, but without luck. The problem is, that the nested form doesn't show up on the page, it's just a blank…
I have nested routes that I'm having difficulty formatting the way I want to.
My routes.rb has the following
resource :loan_application do
scope ":loan_application_id" do
resources :wizard, only: [:show, :update]
end
end
When I click the…