Forum: Ruby on Rails Partial - variable not being sent

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
03d789b32a9e9c47a678f0ac173f5c13?d=identicon&s=25 Alex Treber (Guest)
on 2007-01-19 18:21
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"

<%= "#{@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} %>
<%= render_partial '/shared/week', @pastDate %>

Any ideas whats wrong?
This topic is locked and can not be replied to.