need some help understanding forms...

Koloa,

the text_field helper, takes a syntax such as :

  text_field("post", "title", "size" => 20), which will build for you
the following html.      <input type="text" id="post_title" name="post[title]" size="20"
value="#{@post.title}" />

Which when received by your controller will give you a params hash as:

params[:post][:title]

sending the above prams to a Post model, p = Post.new(params[:post]) will initialize the title method of p(a
Post instantiation) with the value typed in the html form.

You should read about helpers here: http://api.rubyonrails.com/ classes/ActionView/Helpers/FormHelper.html#M000389 and this explanation of params should be useful: http:// wiki.rubyonrails.org/rails/pages/UnderstandingRequestParameters

enjoy the ride koloa!

Jodi