PÃ¥l BergstrÃ¶m wrote:
How do I link (with link_to) to a controller and action inside a
subdirectory in controllers? I get an error saying “Unknown action. No
action responded …”.
link_to :controller => ‘/admin/products’, :action => ‘list’
And do I understand it correctly that I need to have a similar
subdirectory in views as well?
That is correct.
Note that the behavior seems to be generally discouraged as it has led
to unpredictable behavior before. (Search the archives for relevant