:post is the parameter that will be symbolic to f
another form format is
<% form_tag :action => "create" do %>
<%= text_field "post", "name" %>
OR
<%= text_field :post, "name" %>
<% end %>
<% end_tag %>
BUT HERE
> <% form_for :post, @post, :url => { :action => "create"
} do |f| -%>
>
> <%- end ->
<%= f.text_field "name" %>
in your controller the input parameter will be
params[:posts] and its hash.
params[:posts]["name"]
params[:posts]["id"]
Like that.
reinhart
http://teapoci.blogspot.com
--
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---