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-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to