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
On 8/3/06, Marco R. <ribi@schwingerverband.ch>
wrote:>
> 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...
>
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://wrath.rubyonrails.org/pipermail/rails/attachments/20060803/feca428c/attachment.html