hi,
tasks is a resource, ‘confirm’ a custom POST action which i need. the
url
should look like that:
tasks/ID/confirm
what do i need to set in my routes for rails2.3.x? is that possible?
thx
hi,
tasks is a resource, ‘confirm’ a custom POST action which i need. the
url
should look like that:
tasks/ID/confirm
what do i need to set in my routes for rails2.3.x? is that possible?
thx
Yes this is possible, try something like this in config/routes.rb
map.connect “/tasks/:id/confirm”, :controller => “tasks”, :action =>
“confirm”
Hope this helps
Chris
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs