I am getting this error when i am using omniauth, rails 4.2.1. I have installed the omniauth gem & omniauth facebook.
routes.rb
get 'auth/:provider/callback', to: 'users#create'
get 'auth/failure', to: redirect('/')
get 'signout', to: 'users#destroy', as: 'signout'
initializers/omniauth.rb
OmniAuth.config.logger = Rails.logger
Rails.application.config.middleware.use OmniAuth::Builder do
provider :facebook, 'APP_KEY', 'APP_SEC_KEY'
end
I am finding this error
No route matches [GET] "/auth/facebook"
can anyone please help me out on this, I did lot researches and tried, but nothing seems to work.