On 15 June 2011 09:53, Sta Canovist <stacanov...@gmail.com> wrote: > 2011/6/15 Colin Law <clan...@googlemail.com> >> >> What does rake routes show? Is the url you are using above contained >> there? >> >> Colin >> > > Well, among those that I think are relevent I can only see: > > portal_update POST > /admin/accounts/:account_id/portals/:portal_id/update(.:format) > {:action=>"update", :controller=>"admin/portals"} > > PUT /admin/accounts/:account_id/portals/:id(.:format) > {:action=>"update", :controller=>"admin/portals"} > > PUT /admin/accounts/:id(.:format) > {:action=>"update", :controller=>"admin/accounts"}
Right, so you can see that the routes you want are not there. As you can see, the update route requires an id for the portal, so it knows which portal to update, and you have not provided that in your url. Colin -- 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@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.