Re: [Rails-core] Re: Request: Make UrlHelper methods available for controllers

2010-05-13 Thread Allen Madsen
Kristian, If I understand what you are trying to do, then its a little backwards. You really shouldn't be generating view stuff in the controller. Instead you can create a class variable like @logged_in and then use that to selectively show certain components in the view. Allen Madsen http://www.

[Rails-core] Re: Request: Make UrlHelper methods available for controllers

2010-05-13 Thread Kristian Mandrup
I'm having problems using url_for in a controller. The original method looks like this, but the @controller variable is unknown in this context. However if I remove it, it goes in an endless loop for the Hash case. Anyone? def url_for(options = {}) options ||= {} url = case o