I’m opening a view and passing multiple key/value pairs within one
symbol like so:
<%= link_to ‘view’, {:controller => ‘screens’,
:action => “content”,
:data => {“title” => “Body”, “content” =>
screen.body}} %>
What’s the proper way to access these from the view I’m rendering? I
can access the params object to get at the info if I’m only passing one
value, but I’m having problems getting at both key/value pairs.
I’ve tried multiple variations of the following with no success:
<%= params[:data[“title”]] %>
Thanks,