@query = @params[:product][:name]
- dan
--
Dan Kohn <mailto:dan@dankohn.com>
<http://www.dankohn.com/> <tel:+1-415-233-1000>
On Jul 23, 2006, at 4:46 PM, christian wrote:
> 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!
>
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails