M
Manoj Kumar
What is the difference between
parent.children << child.new
and
parent.children.build(params[:child])
parent.children << child.new
and
parent.children.build(params[:child])
2010/4/23 Manoj Kumar said:What is the difference between
parent.children << child.new
and
parent.children.build(params[:child])
Robert said:2010/4/23 Manoj Kumar said: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?
What is the difference between
parent.children << child.new
and
parent.children.build(params[:child])
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.