On 9/22/06, Tom
<rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:>
> Hi there, dumb question - but im not much of a web programmer,
> if i have an auto_complete text field such as:
>
> <%= text_field_with_auto_complete :article, :contains, { :size => 15
},
> :skip_style => true -%>
>
> how do i get the value of the textfield back out? eg how do I then
> reference the textfield in a controller. My filed is autpcompleing fine
> - i just wan to get the data out now for processing :)
>
> With a standard textfield...
>
> <%text_field_tag "some_field"%>
>
> I could just reference "some_field" within my controller - how do
i do
> this a text_field_with_auto_complete
It should be available as params[:article][:contains].
Look at your development log file. Every request shows the params
being used, so you can see exactly where this particular piece of data
is hiding.
-- James
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---