Adam Adam - 9 months ago 69
Ruby Question

Google Authentication in Rails - "uninitialized constant GoogleAuthExample (NameError)"

I'm currently following this tutorial on integrating Google Authentication into Rails apps. I've only been learning Ruby / Rails for a few weeks (though have some other programming experience) and have encountered an error while following the tutorial - not sure if it's something really obvious that I'm misunderstanding.

When I run try to start the server after following the instructions in the tutorial, I get:

/Users/adam/Code/rails_projects/quickcal/config/routes.rb:1:in `<top (required)>': uninitialized constant GoogleAuthExample (NameError)"

Any ideas?

Still not working after changing GoogleAuthExample to the name of my app...

config/routes.rb:1:in `<top (required)>': uninitialized constant QuickCal (NameError)


Make sure that you use your applications name where in that tutorial is GoogleAuthExample.

For example in your routes file:

QuickCal::Application.routes.draw do
  # place routes