Wednesday, March 28, 2012

[Rails] difference between build_ and .build

hi im new in Ruby on rails and currently working with a reservation
system can anyone explain what is the difference between
current_package = build_reservation_package(:package_id => package_id)
abd
current_package =reservation_package.build(:package_id => package_id)
because i tried using the first one but no good but when i try the
second it worked i think both are the same please correct me if im
wrong thank

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate