Hi
I a newbie in RoR! So I have an easy question for some of you:
I want with the following codeline link to the Admin-Controller. The
codeline is on the Product-View with a seperate controller “Product”.
<%= link_to ‘Back’, :action => ‘Admin’ %>
But it doesn’t work correctly. Can anyone help me? I want to make a
simple link!
Thx…
Hi Marco,
try <%= link_to ‘Back’, :controller => ‘admin’ %> # will link to the
index
action on the admin controller
or <%= link_to ‘Back’, :controller => ‘admin’, :action => ‘list’ %> # to
explicity link to the named action, in this case ‘list’
Cheers,
Jan
Jan P. wrote:
Hi Marco,
try <%= link_to ‘Back’, :controller => ‘admin’ %> # will link to the
index
action on the admin controller
or <%= link_to ‘Back’, :controller => ‘admin’, :action => ‘list’ %> # to
explicity link to the named action, in this case ‘list’
Cheers,
Jan
=== >>> Excellent ! Thanks… <<< ===