In a partial, how do I access the ActiveRecord object that's bound to a
form?
<%= f.text_field :name %>
<% if f.(something).new_record? %>
Use if @foo.new_record?
Yes, I know that.
However, I am not sure if I can assume that the partial knows @foo.
As partial views are supposed to be shared among controllers, I want to
minimize the coupling of partial and controller.