The following code doesn’t work with Ruby 1.9.2:
def side_box(title, &block)
render :layout => 'layouts/side_box', :locals => {:title => title} do
&block
end
end
I am getting an error:
syntax error, unexpected tAMPER
&block
What has changed (since 1.8.7) for this not to work?
or
It works in Ruby 1.9 and 1.8.