From: Manoj Kumar on
What is the difference between

parent.children << child.new

and

parent.children.build(params[:child])
--
Posted via http://www.ruby-forum.com/.

From: Robert Klemme on
2010/4/23 Manoj Kumar <manojs.nitt(a)gmail.com>:
> What is the difference between
>
> parent.children << child.new
>
> and
>
> parent.children.build(params[:child])

What is the question? Seriously you do not provide any information
about context or what code you are presenting. How do you expect us
to answer such a question?

Regards

robert

--
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/

From: Manoj Kumar on
Thanks Luis...
--
Posted via http://www.ruby-forum.com/.