Iâ??m having a strange issue with nested routes though, and was wondering
if anyone could shed some light on thisâ?¦
If I have:
map.resources :users do |users|
users.resources :items
end
When I try to call
<%= link_to_remote ‘Delete’, :url => item_url(@item), :with =>
“’_method=delete’”, :confirm => ‘Are you sure?’ %>
From inside the user url
http://localhost:3001/users/1/items
Or edit_item_url(@item.id) it doesnâ??t always render the correct URL, and
sometimes I get a nil error trying to render the url.
Not sure what Iâ??m missing here, but any help is greatly appreciated.
Thanks.
I’ve freezed Edge Rails btw.