f.partial

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.

I'm not sure if other people do it this way, but it seems to be the way.

I would patch it myself, but I have no clue how to do it as the form_for code is a bit ambiguous to me.

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