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"
Which when received by your controller will give you a params hash as:
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/
and this explanation of params should be useful: http://
enjoy the ride koloa!