I am trying to setup gitorious yousource branch, I've followed partly this article: http://www.lacerta.be/d7/content/gitorious-ubuntu-natty
Everything was installed but I get this error:
Error message:
uninitialized constant Rails::Plugin::OpenID
Exception class:
NameError
Application root:
/var/www/gitorious
My Gemfile has gem "ruby-openid", :require => 'openid' but doesn't work anyway.
Anyone know how could i fix it?
Maybe you are not loading "ruby-openid" before the OpenID is called in Rails::Plugin namespace.
Related
I get the following error when I try to start up rails or if I run rails console.
.rvm/gems/ruby-2.3.3#adventure_map/gems/godmin-tags-1.0.1/lib/godmin/tags/helper.rb:11:in '<module:Godmin>': uninitialized constant Godmin::FormBuilders (NameError)
I have included the gem godmin-tags , using haml for templating and running rails-5.0.1
No issue has been raised on its github page and I can seem to find a solution to this
Part of my Gemfile is:
gem 'godmin-tags'
gem 'godmin' # administrative interface https://github.com/varvet/godmin
gem 'devise_token_auth'
gem 'omniauth'
Make sure you include godmin-tags after godmin ;-)
I've deployed my app to Heroku and am getting the the following error:
v2014-08-29T01:59:06.582118+00:00 app[web.1]: NameError (uninitialized constant HomesController::Indirizzo):
I am using the Indirizzo gem and it's showing as being install on Heroku, but I am still getting that error. I have tried
gem 'Indirizzo', require 'Indirizzo'
in my gem file as one post suggested but that didnt work either.
Make a file (config/initializers/require_indirizzo.rb) to require it, like so:
require 'Indirizzo'
If this does not work, you may try the solution posted by gotva and use this instead:
require 'indirizzo/address'
I've been looking at different Gems for redis as session store but they seem to be throwing same/similar error that I can't get around.
For example gem 'redis-store' I add it to my gemfile. Here is the content of my session_store.rb initializer :
MyApp::Application.config.session_store Rack::Session::Redis
Here is the error I get while doing rails s :
/development/config/initializers/session_store.rb:5:in `<top (required)>': uninitialized constant Rack::Session::Redis (NameError)
Then I tried another gem redis-session-store. Here is the content of my initializer when using that gem :
MyApp::Application.config.session_store :redis_session_store,
:db => 0,
:expire_after => 10.minutes,
:key_prefix => "my_app:session:"
This is the error I get when starting my server :
/home/workstation/.rvm/gems/ruby-2.0.0-p353/gems/redis-session-store-0.2.1/lib/redis-session-store.rb:16:in `<top (required)>': uninitialized constant ActionController::Session (NameError)
I've never configured this before, can anyone point out what am I missing here?
It seems you should be using the redis-rails gem provided by the same user (redis-store that it). Looks like the one you're currently using is for rack-based applications.
I installed exception_notifier gem following this http://railscasts.com/episodes/104-exception-notifications-revised. But when running rails s, I got this
/home/ruby-2.0.0-p195/gems/actionpack-3.2.13/lib/action_dispatch/middleware/stack.rb:43:in `build': undefined method `new' for ExceptionNotifier:Module (NoMethodError)
So I tried to Google this problem, and I found that I could use in my production.rb file this config.middleware.use ExceptionNotifier::Rack... insted of this config.middleware.use ExceptionNotifier...
But then I got this message:
uninitialized constant ExceptionNotifier::Rack (NameError)
How should I handle this gem installation ?
If you follow the link https://github.com/smartinez87/exception_notification indicated by #pdobb, you 'll find you have to use
ExceptionNotification::Rack
instead of
ExceptionNotifier::Rack
It's ExceptionNotification::Rack. ExceptionNotifier was for the pre-4.0 versions. See the Getting Started info here: https://github.com/smartinez87/exception_notification for the specifics.
Hi I am trying use twitter-text-rb gem.
added "include Twitter::Autolink" in application helper follow by example, after restarting the server getting error
Routing Error
uninitialized constant Twitter::Autolink
Add this to your Gemfile:
gem 'twitter-text'
And then run:
bundle install