16 May 21:09
Cleanest syntax for form partial?
From: Michael Slater <ms@...>
Subject: Cleanest syntax for form partial?
Newsgroups: gmane.comp.lang.ruby.rails
Date: 2008-05-16 19:13:41 GMT
Subject: Cleanest syntax for form partial?
Newsgroups: gmane.comp.lang.ruby.rails
Date: 2008-05-16 19:13:41 GMT
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
-~----------~----~----~----~------~----~------~--~---
RSS Feed