Hi, I am trying to implement an autocomplete form with rails, I used jquery in a first version, to suggest phrases to user and it worked Now I am trying to have a service of autocomplete word by word, it means when the user it typing in the text area, I suggest only words and not phrases and when he finishes the word and starts a new one I do the same suggestion for the new word Is there a way to do this easily in rails regards, -- Posted via http://www.ruby-forum.com/. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
rubix Rubix wrote in post #1059751:> Hi, > I am trying to implement an autocomplete form with rails, I used jquery > in a first version, to suggest phrases to user and it worked > Now I am trying to have a service of autocomplete word by word, it means > when the user it typing in the text area, I suggest only words and not > phrases and when he finishes the word and starts a new one I do the same > suggestion for the new word > Is there a way to do this easily in rails > regards,This can be done with javascript/jquery, not rails. Use the callbacks of autocomplete :). -- Posted via http://www.ruby-forum.com/. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
I think what Guillem is saying is that you can still do it with jQuery/ Javascript like you did before and that you''ll need to control the logic yourself. On May 6, 5:02 pm, rubix Rubix <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Hi, > I am trying to implement an autocomplete form with rails, I used jquery > in a first version, to suggest phrases to user and it worked > Now I am trying to have a service of autocomplete word by word, it means > when the user it typing in the text area, I suggest only words and not > phrases and when he finishes the word and starts a new one I do the same > suggestion for the new word > Is there a way to do this easily in rails > regards, > > -- > Posted viahttp://www.ruby-forum.com/.-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.