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 %>