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?
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---