[Rails] Some questions of REST actions
Eduardo Yáñez Parareda
eduardo.yanez at gmail.com
Fri Aug 11 15:51:53 GMT 2006
I've set up my application to use edge rails in order to get REST
functionality.
I've a controller called team (team_controller.rb) with some actions
(index, list,
show, create, new....). Moreover in routes.rb I've added
map.resources :team
so I guess I could call
localhost:3000/xxxx/team/1
or
localhost:3000/xxxx/team/1;edit
Well, when I do the first call, server response me 'Unknown action No
action responded to 1', surprisingly the second call shows the edit form
for the team 1.
Isn't it the first call supposed to invoke 'show' action and shows me
the team 1?
--
Posted via http://www.ruby-forum.com/.
More information about the Rails
mailing list