Newbie question geting info back out of autocomplete field

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 :slight_smile:

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

On 9/22/06, Tom [email protected] wrote:

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs