These are done using resources. From
http://api.rubyonrails.org/classes/ActionController/Resources.html#M000176:
map.resources :messages, :new => { :new => :any, :preview => :post }
# --> POST /messages/new;preview (maps to the #preview action)
# also adds a named route called "preview_new_message"
# --> /messages/new can be invoked via any request method
This is all rails 1.2.x stuff. Here''s a tutorial I googled:
http://www.eribium.org/?p=71, but there are probably better links out
there.
On Mar 14, 7:12 am, "ginger72"
<jfesslme...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
wrote:> Hi,
>
> I am implementing a wizard entry form and ran across the job board on
> 37signals, which I think could come in quite handy. The URLs are
> encoded the following way:
>
> https://jobs.37signals.com/jobs/new => 1st
pagehttps://jobs.37signals.com/jobs/new;preview => 2nd page, the preivew
>
> How would the corresponding controller/action look like and how the
> form_tag in the form?
>
> Thanks much,
> Juergen
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---