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