views:

150

answers:

2

In ramaze (2009.06.04) the link helper has changed and I have some problems to use it. I want to create a link to the MainController -> test action

#{a('Testlink', r(:test))}

This works if the URL is not in a specific controller. If the user is in a other controller like http://site/othercontroller/testtwo, the Testlink are linked to http://site/othercontroller/test.

How can I set the link constant to http://site/test ?

+2  A: 

Use the Controller.a method, like #{UsersController.a('Remove', :remove_target, tgt.id)}

Great, works fine. Thanks!
Fu86
+1  A: 

Try #{a('Testlink', MainController.r(:test))}

hrnt