ruby on rails - Routing error - uninitialized constant -


i not fix in rails 3.2.12, maybe missing something.

config/routes.rb

get "home/index" root :to => "home#index" devise_for :users, :only => :omniauth_callbacks match 'users/auth/:provider/callback' => 'authentications#create' match '/auth/:provider/signout' => 'authentications#signout' 

app/controllers/authentication_controller.rb

class authenticationscontroller < applicationcontroller   ... end 

app/models/authentication.rb

class authentication < activerecord::base   ... end 

i think should work current knowledge, there miss.

my kind question tell wrong, please.

rounting error

uninitialized constant authenticationscontroller

this message shows @ http://localhost:3000/auth/facebook/signout

rails requires file name match class name. therefore should rename app/controllers/authentication_controller.rb app/controllers/authentications_controller.rb.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -