Questions tagged [wicked-gem]

a Ruby gem for building step-by-step wizards in Rails apps

wicked is a Ruby gem for building step-by-step wizards in Rails applications.

Resources

107 questions
0
votes
1 answer

Prettier routes for Wicked Wizard

I'm using Wicked to build an object in steps, and would like to clean up my routes a little bit. Currently, my router looks like this: resources :surveys, only: [:new, :create], path: 'feedback' do resources :steps, only: [:show, :update], …
djfdev
  • 5,747
  • 3
  • 19
  • 38
0
votes
1 answer

Rails wicked gem - bootstrap modal on finish wizard

I have searched over the stackoverflow and internet but could not find a solution. I have a car modal and I used wicked gem for user to enter data. But on the finish wizard, I would like to show bootstrap modal to user that kind of says, "we have…
Shalafister's
  • 761
  • 1
  • 7
  • 34
0
votes
1 answer

undefined method `attributes' for nil:NilClass - Wicked/Devise gems

I'm trying to implement Wicked gem with Devise as I want users to go through different steps in order to complete their profiles. I'm a complete newbie so I would appreciate if you can give me a suggestion on what could be the problem. The error I'm…
Marko I.
  • 542
  • 10
  • 38
0
votes
1 answer

:id => "info" error rails wicked forms when retrieving params

I'm new to wicked form and I was following the railcast episode on wicked forms but I keep receiving this error "Couldn't find Company with 'id'=info". So I know that the problem is clearly in my controllers somewhere. I know it's something super…
Juan Pablo Ugas
  • 1,085
  • 9
  • 22
0
votes
1 answer

Unable to generate PDF on server (Production Environment)

I'm converting HTML to PDF using with wicked_pdf and wkhtmltopdf and it's working fine on my localhost but when I deploy that code on server then I'm getting following error on server. Error as well as Logs RuntimeError (Error: Failed to…
0
votes
0 answers

How can I use Devise with one model and a Wicked-gem wizard with another model?

I am using the Devise gem for user login, permitting :emailand :password and the Wicked gem for profile completion, permitting first_name, last_name, username, and bio. User model has_one :profile and accepts_nested_attributes_for :profile and…
Danny Beyrer
  • 51
  • 1
  • 7
0
votes
3 answers

Rails wicked gem

I am having problems related to the links given to login and logout. I am not using devise gem In my code I have given the following links <% if current_user %>
  • <%= link_to 'Logout',{:controller=>'sessions', :action=> 'destroy'}%>
  • <% else…
    Nitin Rajan
    • 309
    • 2
    • 18
    0
    votes
    0 answers

    Ruby on Rails Nested Forms - Unpermitted Parameters: users_attributes

    When trying to add users to a band using the nested_form gem, I am unable to access the users from the params. After some investigation I noticed that I was getting an unpermitted parameters error in the console. I need to access users_attributes so…
    0
    votes
    1 answer

    Can not save user sign up info when using devise and wicked

    Im new to the rails platform...i have an issue of saving user sign up information on clicking register in my form....i get no error but on checking the rails console all the user information is equated to nil...cant figure out why. my user steps…
    0
    votes
    1 answer

    rails wicked gem cancel and clean up

    The Wicked gem is "pretty cool" but I wish it didn't save models until the last step. Since it does save models and I'm storing intermediate state in the session, I need the ability to allow users to cancel the wizard and have the wizard clean up…
    techbrownbags
    • 618
    • 5
    • 10
    0
    votes
    1 answer

    Find object by ID in Rails 4 App

    I've built a wizard in my rails 4 app using Wicked. I've specifically followed this guide, the only difference is I'm doing this with a nested resource. I'm having difficulties with my controller actions that are supposed to find the object the form…
    Questifer
    • 1,113
    • 3
    • 18
    • 48
    0
    votes
    1 answer

    With wicked gem, I can't manually move to the next step

    I am using the Wicked gem for multi-step forms and i plan on implementing a custom ajax method, so I will not be able to use the render_wizard method. Right now I am just trying to manually move to the next step. The following does not work: def…
    Philip7899
    • 4,599
    • 4
    • 55
    • 114
    0
    votes
    1 answer

    Multiple render error in rails app while generating pdf file via wicked pdf

    I'm using wicked PDF in my rails app to generate PDF. and that is done by a private function generate_pdf in my controler becase after the purchase process i want to generate that pdf and then mailer function to send that pdf to user. error Render…
    Akki209
    • 123
    • 12
    0
    votes
    0 answers

    two submit buttons in a wizard form page, but not working and saving data

    I'm building a wizard form with wicked gem. Basically, i need to add two button on one form page. Wicked gem suggests we can use link_to, but link_to doesn't save the form. and then we wrote a javascript function for link_to so that clicking button…
    user2775888
    • 39
    • 10
    0
    votes
    1 answer

    Wicked form - How to update a model that belongs to user - undefined method `update_attributes'

    I am creating a muti step form using the wicked gem. The form updates the campaign model that belongs to the user. The error I get is undefined method `update_attributes' I am having trouble with the update action and I believe it has something to…