Omnipresent
Omnipresent

Reputation: 30424

Splitting huge form in different sections in rails

I am implementing a form in rails that is too big (about 60 fields). I would like to split this form into separate sections/pages.

What is the best approach to do this in rails?

Upvotes: 1

Views: 647

Answers (1)

Jesse Wolgamott
Jesse Wolgamott

Reputation: 40277

This Railscast on MultiStep forms is easy to implement and is rails 3 ready. You have one controller that renders different partials based on what step of your entry process you're on.

If you're in rails 2.3 (or ruby 1.8.7), I've seen people have success with https://github.com/jeffp/wizardly and https://github.com/adkron/actsaswizard

I recommend the multistep approach.

Upvotes: 1

Related Questions