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!