I have an articles controller and an admin/articles..routes.rb:
map.namespace :admin do |admin|
Normally I could refer to the admin_article_path series of
routes...edit_admin_article_path(asdf) for example - but a link_to for
destroy isn't working out. It's looking in the Articles controller
rather than the Admin::Articles controller.
<%= link_to 'Destroy', admin_article
etc etc - always get an undefined local variable or method.
I did just notice in my controllers/admin/articles_controller.rb that
I'm doing things like:
@articles = Article.find,etc rather than Admin::Article find - maybe
this could be it..im crossing controllers up?
Any help would be greatly appreciated