Solution for: #55: accessing locals hash within an ActionView partial

local_assigns

1
The variable is named "local_assigns," so you can do something like this:

<% defaults = { :protagonist => 'Romeo', :sidekick => 'Mercutio' } %> <%= render :partial => "some_other_partial", :locals => defaults.merge(local_assigns) %>

Kind of useful when you have partials wrapping other, very similar partials.