Error on click to globalize plugin loading
-
Luca Guidi
- Tag set to bug
Thanks for reporting. I'm figuring how to solve this issue, it affects a lot of applications, lately. Maybe the right solution is to completely remove all the code from init.rb (except for the require statement) and add to your environment.rb the following line:
config.plugins = [ :all, "click-to-globalize".to_sym ]Probably I'll add the code to prompt a warning message after the installation process.
-
Philippe
Thank you for your answer.
I tried your workaround and I was not able to make it run. When I start rake click:test, I have:
S:/my_web_site/vendor/plugins/click_to_globalize/lib/click_to_globalize.rb:5:in
alias_method': undefined methodtranslate' for classClass' (NameError)from S:/my_web_site/vendor/plugins/click_to_globalize/lib/click_to_globalize.rb:5 from C:/Applications/Dev/ruby-186-25/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
from C:/Applications/Dev/ruby-186-25/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' from C:/Applications/Dev/ruby-186-25/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:496:in
require'from C:/Applications/Dev/ruby-186-25/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:342:in
new_constants_in'from C:/Applications/Dev/ruby-186-25/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:496:in
require' ...I didn't trace the problem, but the message makes me feel that Globalize has not be loaded yet... I was wondering: in your line of code above, does not :all contain Click? In other words, do you load Click last, or do you load it twice (first time because of :all, second time because of the explicit symbol)?
-
Luca Guidi
http://github.com/rails/rails/tr...
":all can be used as a placeholder for all plugins not explicitly named"
Try to include Globalize in init.rb and look it was effectively missing.
-
Philippe
Oops! Documentation was not that far... sorry.
It works actually: it's just that I have a vendor/plugins/click_to_globalize directory and not vendor/plugins/click-to-globalize, so for me it's:
config.plugins = [ :all, :click_to_globalize ]
Thank you,
Philippe
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.