Fwd: [Rails] routting question

On Thu, Jul 31, 2008 at 6:58 PM, Scott K. <
[email protected]> wrote:

map.resources :compounds

how can i get it to map to http://localhost/compounds/calculator ?

map.resources :compunds, :member => { :calculator => :get }

change :get to be whatever verb you need.


tim

Verbs are:

:get, :post, :put, :delete and :any

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs