Note that there are some explanatory texts on larger screens.

plurals
  1. POFacebook Omniauth routing error in Ruby on Rails
    primarykey
    data
    text
    <p>I followed <a href="http://railscasts.com/episodes/360-facebook-authentication" rel="nofollow">Rails Casts Episode #360</a> on how to integrate facebook login. </p> <p>When I click 'Sign in with Facebook', I get this error: </p> <pre><code>Routing Error No route matches [GET] "/auth/facebook" </code></pre> <p>Here is my routes file: </p> <pre><code>Frostfiress::Application.routes.draw do ActiveAdmin.routes(self) devise_for :admin_users, ActiveAdmin::Devise.config get "profiles/show" #get 'questions/:tag', to: 'questions#index', as: :tag #get 'places/:tag', to: 'places#index', as: :tag match 'auth/:provider/callback', to: 'sessions#create' match 'auth/failure', to: redirect('/') match 'signout', to: 'sessions#destroy', as: 'signout' resources :places devise_for :users devise_scope :user do get 'register', to: 'devise/registrations#new', as: :register get 'login', to: 'devise/sessions#new', as: :login get 'logout', to: 'devise/sessions#destroy', as: :logout get 'password/change', to: 'devise/passwords#edit', as: :password end resources :answers resources :questions root :to =&gt; "questions#index" get '/:username', to: 'profiles#show' </code></pre> <p>All of the other files I had to change in the RailsCast are exactly the same as in the tutorial. </p> <p>My AppId and Secret were working but now I get the routing error. </p> <p>Any suggestions? </p> <p>Thanks </p> <p>This is the result of rake routes: </p> <pre><code>profiles_show GET /profiles/show(.:format) profiles#show /auth/:provider/callback(.:format) sessions#create auth_failure /auth/failure(.:format) :controller#:action signout /signout(.:format) sessions#destroy places GET /places(.:format) places#index POST /places(.:format) places#create new_place GET /places/new(.:format) places#new edit_place GET /places/:id/edit(.:format) places#edit place GET /places/:id(.:format) places#show PUT /places/:id(.:format) places#update DELETE /places/:id(.:format) places#destroy new_user_session GET /users/sign_in(.:format) devise/sessions#new user_session POST /users/sign_in(.:format) devise/sessions#create destroy_user_session DELETE /users/sign_out(.:format) devise/sessions#destroy user_omniauth_authorize /users/auth/:provider(.:format) devise/omniauth_callbacks#passthru {:provider=&gt;/(?!)/} user_omniauth_callback /users/auth/:action/callback(.:format) devise/omniauth_callbacks#(?-mix:(?!)) user_password POST /users/password(.:format) devise/passwords#create new_user_password GET /users/password/new(.:format) devise/passwords#new edit_user_password GET /users/password/edit(.:format) devise/passwords#edit PUT /users/password(.:format) devise/passwords#update cancel_user_registration GET /users/cancel(.:format) devise/registrations#cancel user_registration POST /users(.:format) devise/registrations#create new_user_registration GET /users/sign_up(.:format) devise/registrations#new edit_user_registration GET /users/edit(.:format) devise/registrations#edit PUT /users(.:format) devise/registrations#update DELETE /users(.:format) devise/registrations#destroy register GET /register(.:format) devise/registrations#new login GET /login(.:format) devise/sessions#new logout GET /logout(.:format) devise/sessions#destroy password GET /password/change(.:format) devise/passwords#edit answers GET /answers(.:format) answers#index POST /answers(.:format) answers#create new_answer GET /answers/new(.:format) answers#new edit_answer GET /answers/:id/edit(.:format) answers#edit answer GET /answers/:id(.:format) answers#show PUT /answers/:id(.:format) answers#update DELETE /answers/:id(.:format) answers#destroy questions GET /questions(.:format) questions#index POST /questions(.:format) questions#create new_question GET /questions/new(.:format) questions#new edit_question GET /questions/:id/edit(.:format) questions#edit question GET /questions/:id(.:format) questions#show PUT /questions/:id(.:format) questions#update DELETE /questions/:id(.:format) questions#destroy root / questions#index GET /:username(.:format) profiles#show </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload