Forum: Ruby on Rails params

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Shandy N. (Guest)
on 2007-06-29 01:14
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?
Ringo (Guest)
on 2007-06-29 10:41
in view
<%= text_field :post, :body %>

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

is it like this?
This topic is locked and can not be replied to.