On Sun, Aug 3, 2008 at 9:32 PM, Ryan Bigg <radarlistener@gmail.com>
wrote:> I would like to add a patch to rails so when people use form_for they
> can call partial on the formbuilder object and that calls
> render :partial => "form", :locals => { :f => f }. The
reason for
> wanting to do this is that the render :partial... code is quite a
> mouthful and I find myself repeating it again and again.
There has been discussion around this and the solution was to make
#render even smarter:
<%= render :partial => f %>
http://github.com/rails/rails/commit/b812b236876ab7a6bd1f3e58a1aa71847394f3a1
--~--~---------~--~----~------------~-------~--~----~
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 rubyonrails-core@googlegroups.com
To unsubscribe from this group, send email to
rubyonrails-core+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---