Pass locals with render_component

I want to pass locals along with render_component

<%=render_component(
:controller => ‘html_module’,
:action => “index”,
:locals => {:module_info => “my module
information”})
%>

How can I access locals from my Controller?

I tried

class HtmlModuleController < ActionController::Base
def index
@message = module_info
end
end

But it does not work

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs