I've noticed this behavior in consecutive calls to the same partial.

1. render :partial => 'blah', :locals => {:somevar => true}
2. render :partial => 'blah'

In the second call to the partial, "defined?(somevar)" will return 
true...even tho it wasn't in the locals passed in the render..

I'd like to have optional locals on some of my partials.
The current behavior requires me to always pass the local :somevar.

Does this strike anyone else as an issue?

cheers
Andy
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to