Jamie On 25-Feb-09, at 3:25 PM, Jamie Forrest wrote: > > I am trying to call the variable 'foo' in a partial called > _attachment.html.erb, which is nested in another partial called > _form.html.erb. In _form.html.erb, I have: > <%= render( :partial => 'listings/attachment', > :collection => @residential_listing.attachments, > :locals => {:foo => "bar"}) %> > > And then in /listings/_attachment.html.erb, I simply have: > <%= foo> > > This causes the error above. Can anyone help me figure out what I'm > doing wrong?
does <%= foo %> work? J --~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---