Forum: Ruby on Rails Passing the input name to "text_field_with_auto_complete"

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
167a3b5582230623eb94e638133122ec?d=identicon&s=25 kris (Guest)
on 2006-03-28 15:16
I have a view with two auto complete input boxes. How do I give the
input a name like I can for "text_input" helper?

I've looked at the docs
(http://api.rubyonrails.com/classes/ActionView/Help...)
but cant make sense of it...


      <p><label for="search_start_station">From</label><br/>
      <%= text_field_with_auto_complete :station, :name %></p>

      <p><label for="search_end_station">To</label><br/>
      <%= text_field_with_auto_complete :station, :name %></p>

At the moment both inputs have the same name:

<input id="station_name" name="station[name]" size="30" type="text" />

<input id="station_name" name="station[name]" size="30" type="text" />


Many thanks, K.
167a3b5582230623eb94e638133122ec?d=identicon&s=25 kris (Guest)
on 2006-03-29 14:12
Anyone? Or is this a patch/update that needs submitting?
This topic is locked and can not be replied to.