Join GitHub today
Hey, great gem and it works great for me, too.
I do not want to redirect to root_url and thus would like to use the
wrong number of arguments (1 for 0)
I am pretty sure it has nothing to do with the gem but for the moment I am really stuck. So, thx for any help.
Hey, of course.
class EventStepsController < ApplicationController include Wicked::Wizard steps :personal, :social, :sponsorship def show @event = current_event render_wizard end def update @event = current_event @event.attributes = params[:event] render_wizard @event end private def redirect_to_finish_wizard redirect_to root_path , notice: "Thank you for signing up." end end
The event_controller is as follows:
def create @event = Event.new(params[:event]) @event.user_id = current_user.id if @event.save session[:event_id] = @event.id redirect_to event_steps_path else render :new end end
Could it be a routing error? I am not that advanced in rails..
I fixed your indentation and style there, you can use three back ticks
before and after code blocks to make them more readable in github.
You're supposed to customize the final destination using
I didn't intend or really even think of people over-writing
It is written taking in a hash of options. Since my internal code is calling that method with an argument, your method also has to have an argument, so you'll need to change it from
Seconded the thanks! Useful explanation above. FYI, the