Michael Slater | 16 May 21:09

Cleanest syntax for form partial?


When I'm in a form block and am including a partial, I use:

<%= render :partial => 'form', :locals => {:f => f} %>

Is there a cleaner way to write this? Something new in Rails 2 maybe?

Michael
--~--~---------~--~----~------------~-------~--~----~
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@...
To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---


Gmane