Re: [Rails] Re: Autocomplete plugin

2011-05-11 Thread Walter Davis
On May 11, 2011, at 11:27 AM, Mlle wrote: Thanks for your comments. I understand what you're saying but I guess my question had more to do with the population of the actual list, not the database query. If you use the autocomplete plugin, the list that populates under the input box has to be

[Rails] Re: Autocomplete plugin

2011-05-11 Thread Mlle
Thanks for your comments. I understand what you're saying but I guess my question had more to do with the population of the actual list, not the database query. If you use the autocomplete plugin, the list that populates under the input box has to be a certain field of a certain model. For examp

[Rails] Re: Autocomplete plugin

2011-05-11 Thread pepe
If I understand well the question the answer should be yes. If what you mean is if it is possible to use one field on a page to find data in more than one column in the table it should be possible the only thing you would need is to query the table by the columns you desire to query on. On May 10,

[Rails] Re: Autocomplete Plugin - how can I use same "text_field_with_auto_complete" twice on one page?

2009-06-07 Thread Pat Shaughnessy
I ran into the same problem a while back and forked the plugin to fix it; see: http://patshaughnessy.net/repeated_auto_complete Hope this helps, - pat On Jun 2, 1:51 pm, Andy wrote: > Any ideas here? > > On May 28, 1:49 pm, Andy wrote: > > > I'm trying to use an autocomplete twice on the same

[Rails] Re: Autocomplete Plugin - how can I use same "text_field_with_auto_complete" twice on one page?

2009-06-02 Thread Andy
Any ideas here? On May 28, 1:49 pm, Andy wrote: > I'm trying to use an autocomplete twice on the same page, but only the > first one renders and functions. > > I'm using the Autocomplete Plugin and Rails 2.1 > > Thanks, > Andy --~--~-~--~~~---~--~~ You received th

[Rails] Re: Autocomplete plugin with Rails 2.0

2009-02-07 Thread Ferit Öztosun
Tanks Elad Roz Attachment: auto_complete_macros_helper.rb (7,6 KB) your attachment it s work perfectly -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Ta

[Rails] Re: Autocomplete plugin with Rails 2.0

2009-02-06 Thread Gerrit Lewedag
> use :except instead of :exclude > > => protect_from_forgery :except => [:auto_complete_for_tag_name] http://api.rubyonrails.org/classes/ActionController/RequestForgeryProtection/ClassMethods.html#M000493 -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~-

[Rails] Re: Autocomplete plugin with Rails 2.0

2009-02-06 Thread Gerrit Lewedag
Eric Pugh wrote: > I tried out adding the exclude line: > > protect_from_forgery :only => [:tag] > > However, it seems ugly that I have to add each method manually. I > tried > > protect_from_forgery :exclude => [:auto_complete_for_tag_name] > > but that didn't work. Is this oddness

[Rails] Re: Autocomplete (plugin&Scriptaculous) not working in Safari.

2008-10-06 Thread Vinay
Anyone? This is the very last step in this implementation and im not able to find a solution by myself. On Oct 3, 10:38 am, Vinay <[EMAIL PROTECTED]> wrote: > @Xavier > I used a solution i had for auto_complete for the results. But there > are a few issues like the options list does not go away w

[Rails] Re: Autocomplete (plugin&Scriptaculous) not working in Safari.

2008-10-02 Thread Vinay
@Xavier I used a solution i had for auto_complete for the results. But there are a few issues like the options list does not go away when the user selects an option. I either need to press "esc" or click on some other part of the page for that to go away. And i cant use the mouse to select an opti

[Rails] Re: Autocomplete (plugin&Scriptaculous) not working in Safari.

2008-10-01 Thread Xavier Noria
On Wed, Oct 1, 2008 at 12:38 PM, Vinay <[EMAIL PROTECTED]> wrote: > For those interested, include an "informal" class for the element you > don't want to get in your text field. > :) works well. > @Xavier, Thanks for pointing me in the right direction with that! How > can i customize model_auto_c

[Rails] Re: Autocomplete (plugin&Scriptaculous) not working in Safari.

2008-10-01 Thread Vinay
For those interested, include an "informal" class for the element you don't want to get in your text field. :) works well. @Xavier, Thanks for pointing me in the right direction with that! How can i customize model_auto_completer_result to show more than one attribute in the results? like contact

[Rails] Re: Autocomplete (plugin&Scriptaculous) not working in Safari.

2008-09-29 Thread Xavier Noria
On Tue, Sep 30, 2008 at 8:01 AM, Vinay <[EMAIL PROTECTED]> wrote: > Thanks loads Xavier!! :) i just removed the div tags and kept the ul > and li tags like you said and it worked.. i cant believe it was so > simple!! been having this problem for quite a while! Also, I have > implemented your plug

[Rails] Re: Autocomplete (plugin&Scriptaculous) not working in Safari.

2008-09-29 Thread Vinay
Thanks loads Xavier!! :) i just removed the div tags and kept the ul and li tags like you said and it worked.. i cant believe it was so simple!! been having this problem for quite a while! Also, I have implemented your plugin and its working well.. thanks! :) Just one more thing i could never figu

[Rails] Re: Autocomplete (plugin&Scriptaculous) not working in Safari.

2008-09-29 Thread Vinay
Xavier, Thanks for your reply. And i DID come across your plugin today :). So will try to implement it soon. However, I also want to understand why it is not working in Safari. If i remove the li and ul tags, the autocomplete results dont show up. The partial is rendered if i look into the dvlpmnt

[Rails] Re: Autocomplete (plugin&Scriptaculous) not working in Safari.

2008-09-29 Thread Xavier Noria
You need to leave the UL and LIs, only start with a bare <%=h this %> and <%= that %> without additional markup and no newline between the LI tags and the content. You can write your custom action in the controller to implement any search criteria, both in bare auto_complete and model_auto_comp

[Rails] Re: Autocomplete (plugin&Scriptaculous) not working in Safari.

2008-09-29 Thread Vinay
Also, how can i match more than one field in the Contact model? In the sense, the User can type either the contact name or the contact email and get relevant results. Like in Gmail. On Sep 29, 2:31 pm, Vinay <[EMAIL PROTECTED]> wrote: > Xavier, > Thanks for your reply. And i DID come across your

[Rails] Re: Autocomplete (plugin&Scriptaculous) not working in Safari.

2008-09-29 Thread Xavier Noria
On Mon, Sep 29, 2008 at 7:13 AM, Vinay <[EMAIL PROTECTED]> wrote: > 1.User starts typing > 2.Autocomplete kicks off and returns matching strings in relevant > attributes and Model. > 3.User scrolls down options and selects the one he/she wants. > 4.Selected option appears on the text box > 4a.T

[Rails] Re: Autocomplete plugin with Rails 2.0

2008-09-05 Thread Ricardo Gutiérrez
Bala Paranj wrote: > I installed the auto_complete plugin found at > http://svn.rubyonrails.org/rails/plugins/auto_complete. When I type a > character in the autocomplete field I get the following error: > > Processing EventsController#auto_complete_for_event_location (for > 127.0.0.1at 2007-10-2