I''m totally lost with this feature so I wanted to ask to the community for some links in order to implement this feature I''m trying to make a city spell checker (actually a spell checker that will work for anything at all that I have in the database) So I.e. if I have in my database these two cities: hollywood bollywood and the user writes and submit: collywood I want to show him something like? Did you wanted to say any of these? hollywood bollywood Can anyone point me in the right direction? Thank you -- 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.
try auto complete that may help full for user . something llike this http://github.com/rails/auto_complete On Mon, Jun 21, 2010 at 5:28 PM, Rodrigo Dominguez <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>wrote:> I''m totally lost with this feature so I wanted to ask to the community > for some links in order to implement this feature > > I''m trying to make a city spell checker (actually a spell checker that > will work for anything at all that I have in the database) > > So I.e. if I have in my database these two cities: > > hollywood > bollywood > > and the user writes and submit: > > collywood > > I want to show him something like? > > Did you wanted to say any of these? > > hollywood > bollywood > > > Can anyone point me in the right direction? > > Thank you > -- > 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- Thanks: Rajeev sharma -- 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.
Hi, thanks for the tip, but I already have implemented the autocomplete for that field However, my client asked me to let the user to go on without selecting a city from the autocomplete, and if that happens, then show him a screen with possible matches for what he wrote, so I''m trying to know what the people use for doing that Thank you kannav rajeev wrote:> try auto complete that may help full for user . > something llike this http://github.com/rails/auto_complete > > On Mon, Jun 21, 2010 at 5:28 PM, Rodrigo Dominguez > <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>wrote: > >> >> >> 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> >> . >> For more options, visit this group at >> http://groups.google.com/group/rubyonrails-talk?hl=en. >> >> > > > -- > Thanks: > Rajeev sharma-- 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.
On Jun 21, 1:13 pm, Rodrigo Dominguez <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Hi, thanks for the tip, but I already have implemented the autocomplete > for that field > > However, my client asked me to let the user to go on without selecting a > city from the autocomplete, and if that happens, then show him a screen > with possible matches for what he wrote, so I''m trying to know what the > people use for doing that >I once did something similar using raspell (ruby bindings for aspell). You can supply custom dictionaries, one containing just the list of cities you know about should do the trick Fred -- 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.
Frederick Cheung wrote:> On Jun 21, 1:13�pm, Rodrigo Dominguez <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote: >> Hi, thanks for the tip, but I already have implemented the autocomplete >> for that field >> >> However, my client asked me to let the user to go on without selecting a >> city from the autocomplete, and if that happens, then show him a screen >> with possible matches for what he wrote, so I''m trying to know what the >> people use for doing that >> > > I once did something similar using raspell (ruby bindings for aspell). > You can supply custom dictionaries, one containing just the list of > cities you know about should do the trick > > FredGreat, now I know what to implement in order to implement this feature Thank you so much :) -- 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@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.