On 15 June 2011 09:53, Sta Canovist <[email protected]> wrote:
> 2011/6/15 Colin Law <[email protected]>
>>
>> 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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to