I'm trying to pass a local variable to the partial:
<%= render :partial => 'bar/search_bar', :locals => { :foo => "1111" } %>
but when I try to access the foo
variable in the partial
<p> <%= foo %> </p>
I get:
ActionView::Template::Error (undefined local variable or method `foo' for #<#<Class:0x007f32249423e0>:0x007f3230b839b8>):
I'm using rails 3.2
, I also followed some posts but they couldn't help either.
´ line is the very first one...
– KappaNossi Feb 25 '14 at 14:30