Forum: Ruby on Rails auto_complete_for function

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.
4b87f676cb6c4d648d71000681823693?d=identicon&s=25 Jean-sébastien Jney (jney)
on 2007-03-29 02:46
(Received via mailing list)
hello,

  i've a problem by using text_field_with_autocomplete.
when i use parameters in the header of my function in works :
auto_complete_for :user :login

but i use the function "auto_complete_for_user_login" it doesn't work.

any ideas?

thank you.
7223c62b7310e164eb79c740188abbda?d=identicon&s=25 Xavier Noria (Guest)
on 2007-03-29 07:03
(Received via mailing list)
On Mar 29, 2007, at 2:45 AM, Jean-Sébastien wrote:

>
> hello,
>
>   i've a problem by using text_field_with_autocomplete.
> when i use parameters in the header of my function in works :
> auto_complete_for :user :login
>
> but i use the function "auto_complete_for_user_login" it doesn't work.

Can you explain in what sense it does not work? Is the method
reached? Is it called but no completion returns?

-- fxn
4b87f676cb6c4d648d71000681823693?d=identicon&s=25 Jean-sébastien Jney (jney)
on 2007-03-29 10:43
(Received via mailing list)
function isn't reached at all.
4b87f676cb6c4d648d71000681823693?d=identicon&s=25 Jean-sébastien Jney (jney)
on 2007-03-29 23:10
(Received via mailing list)
i've found what was the matter. "auto_complete_for" function was
declared as protected :(.
thank you anyway Xavier.

On Mar 29, 10:43 am, "Jean-Sébastien" <jeansebastien....@gmail.com>
This topic is locked and can not be replied to.