# Wizard pages

**URL:** <https://www.ruby-forum.com/t/wizard-pages/88743>\
**Category:** Rails\
**Created:** [March 14, 2007, 12:13am UTC](https://www.ruby-forum.com/t/wizard-pages/88743 "2007-03-14T00:13:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ginger72](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/97f17d/32.png) [@ginger72](https://www.ruby-forum.com/u/ginger72)\
**Post date:** [March 14, 2007, 12:13am UTC](https://www.ruby-forum.com/t/wizard-pages/88743/1 "2007-03-14T00:13:02Z")

</div>

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:

[We Work Remotely: Remote jobs in design, programming, marketing and more](https://jobs.37signals.com/jobs/new) =\> 1st page  
[We Work Remotely: Remote jobs in design, programming, marketing and more](https://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

---

<div class="post-metadata">

**Author:** ![ginger72](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/97f17d/32.png) [@ginger72](https://www.ruby-forum.com/u/ginger72)\
**Post date:** [March 14, 2007, 2:44am UTC](https://www.ruby-forum.com/t/wizard-pages/88743/2 "2007-03-14T02:44:17Z")

</div>

These are done using resources. From  
[http://api.rubyonrails.org/classes/ActionController/Resources.html#M000176:](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](http://www.eribium.org/?p=71), but there are probably better links out  
there.
