I’ve got a typical setup here, in my index file there is the line
<%= render :partial => ‘/shared/week’, :locals => {:week => @pastDate}
%>
@pastDate = “1/7/2007”
_week.rhtml
<%= “#{@pastDate} - #{week}”%>
…
output is: "1/7/2007 - "
So the variable is being set, its just not being passed or something
I’ve also tried in the index
<%= render_partial ‘/shared/week’, :locals => {:week => @pastDate} %>
and
<%= render_partial ‘/shared/week’, @pastDate %>
Any ideas whats wrong?