Params


#1

Here is a simple question - I think, but is has been giving me a
headache all day. When using a helper such as <%= text_field…%>, how
to I access that value when gathering it from params? Is it by the id or
the name?


#2

in view
<%= text_field :post, :body %>

then in controller
example
@posts = Post.find :all, :conditions => [‘body = ?’,
params[:post][:body]]

is it like this?