I have a rails 3.1 app. I am trying to access the sign in page. I previously had this working and all of a sudden I am getting the error that I have given in the title. I have also tried googling and looking at other stackoverflow questions and was wondering is there anyone out there who may have experienced this same similar problem? And if so how do you overcome.
I have checked my terminal and found that I recieve the following:
ActionController::RoutingError (uninitialized constant Devise::Controllers::InternalHelpers):
app/controllers/devise/sessions_controller.rb:3:in `<class:SessionsController>'
app/controllers/devise/sessions_controller.rb:1:in `<top (required)>'
It points that the error is in app/controllers however I cannot see this folder in the app folder as I installed devise as a gem. How could I possibly access the controllers.
Solved it myself it appears there was a compatible issue so I used devise 1.5.3
Related
I installed the SoundCloud ruby gem but when I tried running the example 'Print links of the 10 hottest tracks' on this page
https://github.com/soundcloud/soundcloud-ruby
I kept getting an error message "uninitialized constant SoundCloud (NameError)"
I did follow the instruction on the example, registered a client and got my client_id (not sure how to get the access token, which is not required in this example)
I followed the instruction on http://docs.rubygems.org/read/chapter/3 to add require 'soundcloud' to the example code but i still keep getting the same error message.
I am using OSX terminal.
sorry i'm new to ruby and soundcloud API so my question might be very entry level.
The README showed currently on GitHub doesn't match the version 0.3.1 of the gem that you have probably installed.
Changing SoundCloud to Soundcloud should fix your problems.
Please update to version 0.3.2. The README documents the latest interface.
I am using omniauth-facebook gem in my rails app to authenticate with facebook.
Everything worked fine, but recently i have "invalid credentials" error in my production server. (in local it still works great).
I've read that it is due to the last version of the gem (1.4.1) and downgrading to 1.4.0 should solve the problem.
But it does not work for me and i don't know where to look.
ps: i have rails 3.2.11
Thanks for you help.
I'm using Rails v. 3.0.9 and have pushed the app to Heroku. When I view the custom Heroku domain I get the following message from Heroku:
"We're sorry, but something went wrong.
We've been notified about this issue and we'll take a look at it shortly."
I run heroku logs and don't seem to get any error messages. The only error I encounter with Heroku seems to be when I run heroku rake db:migrate with which I get the following in return:
rake aborted!
uninitialized constant Rake::DSL
Note: I'm new to Rails and to Heroku. I'm not quite understanding the difference between production and development environments. Do I need to be in production for Heroku to work? At the moment, I'm using localhost3000 to view my app. Thanks guys!
I have a blog post about it here:
http://codeglot.com/posts/13-you_have_already_activated_rake_0_9_2
There are two solutions. Use an older version of rake or require DSL.
I've been working on a on uploading my RoR3 website onto Heroku.
Took me a while to get it up. Seems to work pretty good but when i try creating a project (my website manges donation projects) i get the next message:
We're sorry, but something went wrong. We've been notified about this issue and we'll take a look at it shortly.
No idea what causes this it works fine on my localhost.
The normal Rails Error - Have a look at the Heroku Logs and check the Stack for more details then post them back on here.
Usually when I've had this problem, it's because I've forgotten to run db migrations at Heroku.
In terminal, in your rails app folder, run this:
heroku rake db:migrate
If needed, you can find more info in this thread.
I'm working with Alex Reisner's geocoder gem on a Rails 3 app (3.0.3) because I'm concerned about GeoKit's shakey Rails 3 compatibility. Alex's gem looked perfect for my application so I started using it and had it working flawlessly last night on my Macbook. I pushed the app to Github when I got it running.
Today, I did a git clone of the app on a desktop Mac. Same version of Ruby, Rails and identical source and Gemfile. This time geocoder is throwing this exception:
NameError (uninitialized constant Geocoder::Net):
app/controllers/restaurants_controller.rb:16:in `create'
My models use after_validation :fetch_coordinates to geocode the model upon save.
Has anyone noticed any other dependencies outside the bundle that could cause this? I like the way Alex put this one together but may give geokit-rails3 a try even though it's an unfinished port.
I just released gem version 0.9.7 which should solve this problem.