Abder-Rahman Ali
2010-Aug-20  17:41 UTC
<% form_for(@adv, :url => {:action=>''create''}) do |f| %>
I''m following an example in the "Head First Rails" book, but
just
changed @ad to @adv.
Regarding the following in "new.html.erb":
<% form_for(@adv, :url => {:action=>''create''}) do |f|
%>
I just want to confirm if I''m correct on that.
- @adv: is the object to which the form is bound to.
- :url => {:action=>''create''}: this is the action that
we will be
redirected to when clicking the f.submit button.
Is that correct that way?
Thanks.
-- 
Posted via http://www.ruby-forum.com/.
-- 
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.