Announcement (2017-05-07): www.ruby-forum.com is now read-only since I
unfortunately do not have the time to support and maintain the forum any
more. Please see rubyonrails.org/community and ruby-lang.org/en/community
for other Rails- und Ruby-related community platforms.

Thx for the tip! This got me a bit further, unfortunately only to
reveal that @controller is definitely nil in my setting. I have a
controller class implementing a method using helpers from various
ActionView::Helpers modules
class MyController
include ActionView::Helpers::TagHelper
include ActionView::Helpers::AssetTagHelper
include ActionView::Helpers::UrlHelper
def link_to_ca_module(ca_module_id)
assigned_ca_module = ...
status_image_tag = ...
action_name = ...
link_to(status_image_tag + assigned_ca_module.ca_module.module_name,
{ :controller => "my",
:action => action_name,
:id => @current_communal_audit_id
},
{ :class => "a-done" })
end
end
So I'm basically calling Action::View::Helpers from my controller. Why
isn't the @controller variable properly set in these Helpers? Am I not
supposed to use this methods from a controller? Should they only be
called from views? How do I create a list of links then in my
controller?
Too many questions :-) Any takers?
cheers
Martin