Accessing form values

Hello - Rails newbie here.

I have the following form with this input box:
<%= text_field_with_auto_complete :product, :name%>

How do I extract its value on my controller?

I’m trying this:
@query = @params[:name]

I see that :name is making it into my params hash:
{“product”=>{“name”=>“ipod”}}

But I can’t seem to extract its value!

@query = @params[:product][:name]

        - dan


Dan K. mailto:[email protected]
http://www.dankohn.com/ tel:+1-415-233-1000

Dan K. wrote:

@query = @params[:product][:name]

        - dan


Dan K. mailto:[email protected]
http://www.dankohn.com/ tel:+1-415-233-1000

Excellent – Thanks!