I\'ve created a set of routes & controllers with the admin namespace, and I was having some issues using the link helpers with these new routes.
I see that there
If you're using Rails 3, you can use your admin namespace with the variable instead of writing the long helper path name.
view:
<%= link_to 'Show', [:admin, project] %>
<%= link_to 'Edit', [:edit, :admin, project] %>
<%= link_to 'Destroy', [:admin, project], confirm: 'Are you sure?', method: :delete %>
controller:
redirect_to [:admin, @project]