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
2
votes
1 answer

How to use the Wicked wizard gem with AJAX?

I am using the wicked to create a multistep wizard. I want to use AJAX so that i can step through the form without having to reload the page. I can't find anything online about how to do this. Has anyone done this before?
2
votes
0 answers

wicked gem - add steps dynamically based on previous selections

How it it possible to implement a wicked gem wizzard and add steps dynamically: - first step => select country - second step => select select city - other step => display shops listsbased on the previous 2 selections. It seems like we can add it…
belgoros
  • 3,590
  • 7
  • 38
  • 76
2
votes
1 answer

Multi Step Form in Rails

I am making a multi step form in Rails 3.2 , the problem being i get to see the fields generated in the sign-up process but i am unable to update them in the second step . I have looked into Ryan Bates's video but mine is a bit complex . The basic…
user3620005
2
votes
1 answer

Undefined method `update' for Array

I'm trying to get the Wicked Wizard gem working on my Rails app. Once a user registers for the app (using Devise), they're redirected to this form: income.html.erb <%= form_for @finance, url: wizard_path, :method => :put do |f| %>
beaconhill
  • 441
  • 6
  • 28
1
vote
0 answers

How to charge Wicked PDF stylesheets into ActionMailer in Rails

I am using the wicked PDF gem and to load the styles for my page it works like a charm, it loads the styles and the content The problem is when I want to attach a pdf in Mailer, the wicked_pdf_stylesheet_link_tag "pdf" styles don't want to load, and…
Samuel D.
  • 199
  • 10
1
vote
1 answer

Using turbostreams in wicked wizard's "show" action?

I'm confused about the pattern someone would use to replace an item in the dom using turbo streams in combination with wicked wizard using the "show action". In my scenario, I'm trying to replace a nested turboframe "foo" that exists on step_b using…
APysnack
  • 73
  • 6
1
vote
0 answers

Wicked PDF. How to remove the margin from the sides of the wicked pdf document

I'd like to have the table 100% horizontal and the attached image there is space both on the right and on the left I applied css styles, margin, padding 0 and nothing works for me. I even put width 100% !important to the styles If someone knows how…
Samuel D.
  • 199
  • 10
1
vote
0 answers

How do I save the step where the user left off in the wizard using Wicked gem?

Context I'm new to app development in Rails so please let me know if I am missing something obvious about saving/storing states in Rails. I'm using the Wicked gem in my app to guide users through a medical assessment that has the following…
oamandawi
  • 405
  • 5
  • 15
1
vote
1 answer

How to fix 'Validation' that is not occurring in my wicked wizard first step

I'm new to programming in Ruby but my code for validation is not occurring at all in the first step of my wizard after logging in. My validation for the two extra fields work for the initial screen but the remaining fields it doesn't work at all? …
skinnyWill
  • 327
  • 2
  • 18
1
vote
0 answers

Change The Second page Margin for .pdf (Created via WickedPDF)

I would like to change the top margins ONLY for the second page of an auto-generated .pdf. It is created via the WickedPDF gem (https://github.com/mileszs/wicked_pdf). The auto-generated pdfs all differ in length and the second page content is not…
1
vote
0 answers

Enable boolean true on succesfull completion of form in rails

My use case is I have a wicked Wizard and its the registration model First user have to register his account am using devise A confirmation mail will be sent to the user's inbox. after successful confirmation user will be redirected to the…
1
vote
1 answer

understanding the usage of cattr_accessor in Rails Model Class

I am a newbie to ruby and rails. In my Rails app, I am trying to use Wicked Wizard gem and need some help in Understanding about the cattr_accessor which I have come across in the code create_table "pets", force: :cascade do |t| …
current_user
  • 1,172
  • 1
  • 16
  • 28
1
vote
0 answers

Rails | Same column multiple times in form | has_many through

I have a multi-step form that creates a Post and its Topics. class Post < ActiveRecord::Base has_many :post_topics has_many :topics, through: :post_topics end class Topic < ActiveRecord::Base has_many :post_topics has_many :posts, through:…
TheGuy
  • 349
  • 6
  • 17
1
vote
1 answer

Cocoon has_one association breaking upon save/update using Wicked Gem - Rails

I've seen some similar questions to this but nothing relating to using the Cocoon gem with the Wicked multi step form Gem in with Rails. The form saves fine when I have a has_many association but when there is a has_one association (Client has_one…
DanRio
  • 453
  • 2
  • 4
  • 20
1
vote
2 answers

Rails wicked wizard with javascript

I want to create a wizard in js. steps :first_step, :second_step In my 'controller_step' def show case step when :first_step @r = R.new when :second_step end …