ruby-on-railswicked-gem

wrong number of arguments (1 for 0) error while using Wicked gem


I am getting this error while signing up user in the last step, user gets signed up but i don't know why is this error coming.

private
 def redirect_to_finish_wizard
  redirect_to root_url, notice: "Thanks for signing up."
 end

Please any solution


Solution

  • Try change your redirect_to_finish_wizad method as below :

    private
    
      def redirect_to_finish_wizard(options = nil)
        redirect_to root_path , notice: "Thank you for signing up."
      end
    

    This will solve your issue. For more information about method look at here.