since you're breaking out of the main form with a partial, and thus losing a bit of context, I think a better local variable name would be useful (i.e. 'form' instead of 'f' or similar). Same for above change.