# Params

**URL:** <https://www.ruby-forum.com/t/params/108085>\
**Category:** Rails\
**Created:** [June 28, 2007, 11:14pm UTC](https://www.ruby-forum.com/t/params/108085 "2007-06-28T23:14:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![snantz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/c2a13f/32.png) [@snantz](https://www.ruby-forum.com/u/snantz)\
**Post date:** [June 28, 2007, 11:14pm UTC](https://www.ruby-forum.com/t/params/108085/1 "2007-06-28T23:14:54Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![snantz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/c2a13f/32.png) [@snantz](https://www.ruby-forum.com/u/snantz)\
**Post date:** [June 29, 2007, 8:41am UTC](https://www.ruby-forum.com/t/params/108085/2 "2007-06-29T08:41:43Z")

</div>

in view  
\<%= text\_field :post, :body %\>

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

is it like this?
