Displaying 1 result from an estimated 1 matches for "posts_attributes".
Did you mean:
post_attributes
2013 Mar 04
2
accepts_nested_attributes: undefined method 'association'_attributes
...s API:
```
Using with attr_accessible
The use of attr_accessible can interfere with nested attributes if you’re
not careful. For example, if the Member model above was using
attr_accessible like this:
attr_accessible :name
You would need to modify it to look like this:
attr_accessible :name, :posts_attributes
```
If I try to do the same for my case with time_entries association:
```
irb(main):016:0> t = Timesheet.new
=> #<Timesheet id: nil, user_id: nil, status: nil, created_at: nil,
updated_at: nil>
irb(main):017:0> t.time_entries_attributes
NoMethodError: undefined method `time_entries...