Hi Jamie, On Thu, 2009-02-26 at 03:58 -0800, Jamie Forrest wrote: > > Without seeing more code, I'd guess you're passing a local to that > > partial without passing the value you're assigning to the local to the > > view / partial above. But that's just a guess. Post some additional > > code for additional assistance. > > Hi Bill, > > I could certainly post more code, but first can I ask what you mean by > 'without passing the value you're assigning to the local'? In the > render call, the locals hash clearly has a value ("bar") for the > key :foo. Or am I missing something obvious?
My bad. Passing a literal should work fine. I'm a little confused by the error / code you posted which is why I suggested you post additional info. The error message says the error is occurring in Residential_listings#new. The partials you're rendering are in 'listings', not 'residential_listings' as one would expect. Also, I'd not expect 'Residential_listings'. That is, the Rails standards would lead me to expect 'ResidentialListings' as an object name. Anyway, post some more code and the full error listing you're getting and maybe we can help. Best regards, Bill --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---