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.
C4bfcc81ac9281cb905f38e97e4d4e0b?d=identicon&s=25 Shandy Nantz (snantz)
on 2007-06-28 23: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?
4762cbe7dafca8325c0b2260b9ed2b76?d=identicon&s=25 Ringo (Guest)
on 2007-06-29 08: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.