In irb all works fine:

# irb
irb(main):001:0> require 'rubygems'
=> true
irb(main):002:0> require 'raspell'
=> true
irb(main):003:0> speller = Aspell.new("ru_RU")
=> #<Aspell:0x7f8692c9d158>
irb(main):004:0> speller.suggestion_mode = Aspell::NORMAL
=> "normal"
irb(main):005:0> speller.check("лошадь")
=> true

But same in Rails project:

require 'rubygems'
require 'raspell'

def xxx
  speller = Aspell.new("ru_RU")
  speller.suggestion_mode = Aspell::NORMAL
  @xxx = speller.check("лошадь").to_s
end

@xxx is false! Why?
-- 
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to