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

106 questions
13
votes
1 answer

Rails Cocoon Gem: Undefined Method 'new_record?' on link_to_remove_association with Wicked

I have been trying to get some code figured out. I have a form I am trying to use the Wicked and Cocoon gem. Everything works, including the link_to_add_association function. I am rendering a partial for the associated form fields just like Cocoon…
jah.humes
  • 545
  • 4
  • 9
4
votes
0 answers

Wicked gem - how to create a new object

I have created a wizard form using Wicked gem and it works great for editing existing records. But I can't figure out how to create a new record using this wizard form. Quotations from documentationBuilding Partial Objects Step by Step: "This also…
Petr Šuška
  • 275
  • 3
  • 11
4
votes
1 answer

Non restful actions in Wicked Wizard controller

Can you have non-restful methods in a controller which includes the WickedWizard gem? Controller: class Books::BookUpdateController < ApplicationController include Wicked::Wizard steps :title_step, :ai_archive_step, :ai_override_step #etc …
snowangel
  • 3,299
  • 3
  • 24
  • 67
3
votes
1 answer

Rails Wicked Gem - Flash Messages

I have a Campaign model and I am using Wicked Gem for step by step campaign creation. I have total 3 steps in the wizard... steps :details, :audiance, :creatives Here is my Wizard controller class Brands::CampaignWizardsController <…
Renil Raphy
  • 241
  • 2
  • 10
3
votes
0 answers

Wizard with wicked gem - use one page for multiple steps

How is it possible to use one and the same view for several steps (for example, you have to loop on several questions to answer and the questions should be generated dynamically in the controller via before_action filter)?
belgoros
  • 2,671
  • 3
  • 19
  • 49
3
votes
1 answer

ruby on rails 4 - Wicked Wizard _Totally_ dynamic step order

I've found almost what I needed in a previous question: Wicked Wizard dynamic step order Unfortunately, I'm still struggling with my problem. I want to make my Wicked Wizard have totally dynamic step order (besides the first step). Each response is…
Nathan
  • 53
  • 6
3
votes
1 answer

Calling a wicked wizard step multiple times

I built a multistep form with wicked-gem consisting of three steps. The last step should be callable 1 to x times. So I added another button to my form: if current_step?(:add_principal_claim) = file.submit value: 'next_claim', class: 'button…
Klaus
  • 1,131
  • 10
  • 13
3
votes
1 answer

PDF caching on heroku with cloudflare

I'm having a problem getting the caching I need to work using CloudFlare. We use CloudFlare for caching all our assets on S3 which works 100% using a separate subdomain cdn We also use CloudFlare for our main site (hosted on Heroku) as well, e.g.…
ere
  • 1,689
  • 1
  • 19
  • 39
3
votes
1 answer

Wicked Wizard dynamic step order

I'm trying to alter the order of the steps in wicked wizard based on the selections form a previous selection. So currently I have all the steps: class WWTestController < ApplicationController include Wicked::Wizard steps…
MechDog
  • 488
  • 6
  • 17
3
votes
1 answer

The Wicked wizard gem ignores my steps and jumps to request_steps/wicked_finish

I'm using the wicked gem After I hit RequestStepsController#update, I'm being redirected to /request_steps/wicked_finish. I have no idea why. Any suggestions? If it worked as I expected it to, then the next step after updating the object would be…
martins
  • 7,647
  • 6
  • 41
  • 67
3
votes
2 answers

Wicked gem cannot find wedding ID in update action

I'm trying to implement the 'Wicked' gem for wizards and cannot figure out this error for the life of me. Already referenced Ryan bates railscast #346 and the step by step tutorial by schneems. I have 2 controllers: Weddings and Wedding_steps. The…
nishacodes
  • 197
  • 1
  • 9
2
votes
2 answers

Wicked PDF - showing fontawesome icons as sqaure box

I am using wicked-pdf gem (v1.2.2) to generate a PDF report which contains a font awesome icon. I have kept the fontawesome file in this path: vendor/assets/fonts/fontawesome.css.erb and corresponding fonts in this…
dp7
  • 6,123
  • 1
  • 9
  • 26
2
votes
2 answers

Rails 5.1.2 Wicked Gem and Nested Attributes

Ruby: 2.4.0 Rails: 5.1.2 Hey Guys, I'm not completely new to Rails but definitely not an expert. What I'm trying to do is to create a wicked wizard with nested attributes. I already searched via Google, GitHub and StackOverflow but haven't found…
2
votes
1 answer

Wicked PDF: How to remove top margin from COVER page?

I'm generating pdf's from html using wicked_pdf. Right now, I want to remove top margin on the first/cover page . This is a snipped code from my controller : render :pdf => @project.name, :javascript_delay => 1000, :disable_external_links =>…
abhsss96
  • 333
  • 1
  • 11
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?
1
2 3 4 5 6 7 8