Displaying 2 results from an estimated 2 matches for "create_par".
Did you mean:
create_ptr
2013 Jan 25
2
creating file locations from hiera
Hi list,
I ran again against a long standing bug / feature request but from a new
angle: creating directories with parents (
http://projects.puppetlabs.com/issues/86).
I wanted to create a module, where a path could be supplied with a class
parameter. The path would be used in a rsync configuration, so I would like
to be sure the path exists. As I want the module to be general and
completely
2006 Feb 14
8
Assigning has_many child in parent creation question
If I have...
class Parent
has_many :children
end
class Child
belongs_to :parent
end
...then...
* Assigning a _new_ child during parent''s creation saves the child
record with the parent''s id.
child = Child.new
Parent.create(:children => [child])
# Results in child being associated with parent
* Assigning an existing child after a parent''s creation