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
0 answers

Rails Wicked URL routing

was curious if there was a way to get the gem wicked to have the same url as the starting controller. So, currently, if I start with the route www.example.com/customer/new, then the wicked gem sends me to www.example.com/customer_steps/first. But…
Corey
  • 835
  • 1
  • 9
  • 32
0
votes
0 answers

Button creates a new instance and submits form rails

I have a form and I want to make a submit button that submits the form but ALSO shows a new(blank) instance of the same form. How can I accomplish this? I am using the wicked gem to make steps and I thought I could do this... <%= link_to 'Add…
SupremeA
  • 1,519
  • 3
  • 26
  • 43
0
votes
1 answer

Stripe checkout on wizard page via wicked gem gives error on loading, how to resolve?

Right now I get this error message when the submit.html.erb loads: Cannot charge a customer that has no active card. I want to understand how I can improve my controller. The goal is to not have the error message when the submit page loads. But only…
Robert
  • 504
  • 5
  • 27
0
votes
0 answers

rails multi-step form without using a model

I am using rails to make a feature designed for uploading CSV's and then taking the CSV's and making rails objects w/ them (i.e. 1 csv row equates to an object in the database). Right now, this is a 2 step process. I am using the wicked gem for…
James N
  • 523
  • 1
  • 8
  • 30
0
votes
1 answer

Rails 5 Multi-Step form using Wicked Gem is getting Forbidden Method error

Been trying to figure out how to get a Multi Step form for an object a user will build using Wicked Wizard gem. I have been following the docs on the gem's github and this question on that Scheem's answered himself, but I am getting a forbidden…
Luis Mejia
  • 87
  • 1
  • 11
0
votes
0 answers

Flash Message Lost in Devise redirect to Wicked Wizard

This is likely a debugging problem more than anything else, but I'm losing a flash message between Devise's after_sign_up_path_for and the beginning of a Wicked wizard. I've tried multiple placements of flash.keep to no avail. Is there any way to…
Nick
  • 839
  • 1
  • 10
  • 19
0
votes
2 answers

Editing a Wizard multistep form after save - Wicked Gem / Rails

I've been going round in circles all day with this. I have a large multi-step form using the Wicked gem and Ruby on Rails. It works perfectly but I can't figure out how to to get back into the form to edit individual entries. Iim trying to make the…
DanRio
  • 453
  • 2
  • 4
  • 20
0
votes
0 answers

Wicked gem, how create dynamic template?

I am using wick for a multi step form, steps are created dynamiquement like this: include Wicked::Wizard before_action :set_steps before_action :setup_wizard def set_steps self.steps = Answer.pluck(:cached_slug) end So far so good,…
Adell
  • 13
  • 4
0
votes
0 answers

Rails error: "param is missing or the value is empty" suddenly after remove gem

When i create a task an ajax function is called to send a specific params data. It was working very well. Then i've installed "wicked_pdf" and "wkhtmltopdf-binary". After learning that on windows I have problems with this tools, i removed them by…
ValeMarz
  • 101
  • 4
  • 16
0
votes
0 answers

Undefined method when saving form

I am using Wicked to create a multi page webform. However, i need to use multiple tables in that form. I succeed using one and have gotten the page for the second table to show up nicely. However, when i try to save it, it gives this…
Marco
  • 75
  • 1
  • 13
0
votes
2 answers

Rails Wicked multi step form - param is missing or the value is empty vs unpermitted parameters

I am following this tutorial to create a multi-step form using the Wicked gem. Each User has one Answer (model to store answers to a set of questions), and I have a QuestionnaireController that steps through the questions that the user will answer…
CChandler81
  • 347
  • 3
  • 14
0
votes
0 answers

Form not showing when using second table

Okay, 1 more then i am hopefully done. I am using Wicked for multi page forms in which i also want to use multiple tables from a mysql database. So i created a second table and form, however, the form wont show the input fields for that second…
Marco
  • 75
  • 1
  • 13
0
votes
1 answer

End or no end? expecting keyword_end

I am trying to build a multi page form based on Wicked for a system that we plan on using. However, after i added the 3rd form page, that is used to fill a second table in the database i get the error listed below. I already tried adding and…
Marco
  • 75
  • 1
  • 13
0
votes
1 answer

Rails 4 + Wicked: Using params to route

I have a bit of a complicated wizard and I'd like to route the user based on their entries to the form. I have listed the steps as follows: steps :weight_loss_history, :health_conditions, :cancer, :weight_mindset, :diabetes, :diet_information,…
Jeremy Thomas
  • 6,240
  • 9
  • 47
  • 92
0
votes
1 answer

Rails Wicked Form: Stop others changing object values

When creating an object with partial validations like here, Wicked requires the object id in the url - http://localhost:3000/pets/1/steps/identity Does this mean that anyone can type this route and modify the data? I need the form to be filled in…
AndrewJL
  • 128
  • 2
  • 12