Improved README as suggested in #27.
This commit is contained in:
parent
bb97c88994
commit
d29dfef1c0
@ -77,7 +77,7 @@ Edit the models to code the relation:
|
||||
````ruby
|
||||
class Project < ActiveRecord::Base
|
||||
has_many :tasks
|
||||
accepts_nested_attributes_for :tasks
|
||||
accepts_nested_attributes_for :tasks, :reject_if => :all_blank, :allow_destroy => true
|
||||
end
|
||||
|
||||
class Task < ActiveRecord::Base
|
||||
|
Loading…
Reference in New Issue
Block a user