Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
`load_missing_constant': uninitialized constant Rails::Railtie #3
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment Hide comment
atwam
Mar 12, 2012
Owner
Hum, I haven't tested the gem with Rails 2, ruby 1.8.7 and rspec 1
I'll have to have a look, I'm not sure about how easy it'll be to hook on these...
Hum, I haven't tested the gem with Rails 2, ruby 1.8.7 and rspec 1 |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment Hide comment
mariozaizar
Jun 21, 2012
Contributor
Since Rails::Railtie was created to support only Rails 3 and there is no plan to extend that support to rails 2.x, now I'm using Aspell dictionary http://aspell.net/, with raspell gem https://github.com/evan/raspell. For example:
Install Aspell: brew install aspell --lang=en,es
Gemfile:
group :test do
gem 'raspell'
end
index_feature.rb
And the page should have a correct spelling
env.rb
require 'raspell'
common_steps.rb
Then /^the page should have a correct spelling$/ do
speller = Aspell.new "en"
# http://aspell.net/man-html/The-Options.html
speller.suggestion_mode = Aspell::NORMAL
speller.set_option "extra-dicts", "es"
speller.set_option "ignore-case", "true"
speller.set_option "ignore", "4"
words = page.text.gsub(/[\w\']+/)
words.to_a.uniq!.each do |word|
if !speller.check(word)
::Rails.logger.warn "Possible correction for '#{word}': '#{speller.suggest(word).andand.first}'"
end
end
end
And that's it.
ps. sadly you can't use your personal ignore-word list with raspell: evan/raspell#10
Since Rails::Railtie was created to support only Rails 3 and there is no plan to extend that support to rails 2.x, now I'm using Aspell dictionary http://aspell.net/, with raspell gem https://github.com/evan/raspell. For example: Install Aspell: Gemfile:
index_feature.rb
env.rb
common_steps.rb
And that's it. |
mariozaizar commentedMar 12, 2012
Hi!,
Quick question: Is this compatible with Rails 2, using 1.8.7?
I did all the required steps: Gemfile, spec_helper, view_spec. But I got his error:
I found this, http://anlek.com/2010/03/uninitialized-constant-railsrailtie/ but, doesn't work.
but I want to be sure.. Maybe I miss something..
Thanks in advance.