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
|
````ruby
|
||||||
class Project < ActiveRecord::Base
|
class Project < ActiveRecord::Base
|
||||||
has_many :tasks
|
has_many :tasks
|
||||||
accepts_nested_attributes_for :tasks
|
accepts_nested_attributes_for :tasks, :reject_if => :all_blank, :allow_destroy => true
|
||||||
end
|
end
|
||||||
|
|
||||||
class Task < ActiveRecord::Base
|
class Task < ActiveRecord::Base
|
||||||
|
|
Loading…
Reference in New Issue