There was a post on hackernews this week about wizards on rails:
http://schneems.com/post/18437886598/wizard-ify-your-rails-controllers-with-wicked

I'm not a big fan of wizards, but you might want to take a look.

The other option is to do a normal new page that goes to step two:
https://gist.github.com/1993514

On Tue, Mar 6, 2012 at 9:35 PM, Chris McCann <[email protected]> wrote:
> I'm wrestling with the best way to handle what is probably a somewhat
> common situation with controller actions and creating a new model
> instance.  I need to split the :new action into two parts.
>
> The creation of a new :proposal instance is really a two-step
> operation.  The first step sets up some basic features of the
> new :proposal and the second step lets the user enter all of the
> details (lots of nested attributes and other stuff).
>
> The question is, how should this be handled in a controller?  Short of
> adding a proposals_controller#setup action that then redirects
> to :new, is there a more canonically correct way to do this?
>
> My Google-fu is letting me down on this, mostly because I'm having
> trouble describing what the problem is that I'm trying to solve.  I'm
> going to bring this issue to the Hackfest this Thursday night as well.
>
> Thanks,
>
> Chris
>
> --
> SD Ruby mailing list
> [email protected]
> http://groups.google.com/group/sdruby

-- 
SD Ruby mailing list
[email protected]
http://groups.google.com/group/sdruby

Reply via email to