Use :locals when you render your views. like:
<%= render :partial => 'foo', :locals => {:bar => some_var} %>
Now in your partial, that variable is available as the local variable bar.
-Bill
Rolf Andreassen wrote:
Use :locals when you render your views. like:
<%= render :partial => 'foo', :locals => {:bar => some_var} %>
Now in your partial, that variable is available as the local variable bar.
-Bill
Rolf Andreassen wrote: