[Rails] Re: autocomplete word by word

2012-05-07 Thread pepe
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...@ruby-forum.com 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@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.



[Rails] Re: autocomplete word by word

2012-05-06 Thread Guillem Vidal
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@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.