Ryan Bigg (Radar | 19 May 04:05
Gravatar

Re: Cleanest syntax for form partial?

<% form_for ... do | <at> f| %>
<%= render :partial => "form" %>
<% end %>

Even cleaner! Passing in your form object as an instance variable gives you the added bonus of having it available in any partial you render after defining it.

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


Gmane