Partial - variable not being sent

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?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs