Re: How to delete nested resource?

Thorsten Mueller
Fri, 21 Mar 2008 10:22:06 -0000

not 100% sure, but:
admin_news_item_asset_path(@news, @news.asset)

should be something like:
admin_news_item_asset_path(@news, :asset_id => @news.asset)

since rails can guess the param name (:id) only for those
parts of the path, that are declared in the routes, all
others must be named in hash fashion
--
Posted via http://www.ruby-forum.com/.