I have these two models
class Invoice < ActiveRecord::Base has_many :items accepts_nested_attributes_for :items ... end class Item < ActiveRec
You are calling a method not on your model object, but on f, which is a form helper (ActionView::Helpers::FormBuilder). Error message gives a hint to this.
f
ActionView::Helpers::FormBuilder
To call on the item, you need to replace
<%= f.total %>
with
<%= f.object.total %>