Omniauth routing error help

I’m trying to setup omniauth for my application. I’m able to get to
twitter
but i get a No route matches {:controller=>“sessions”,
:action=>“auth_callback”}
on the callback. When i run rake routes it shows that the route exists.
ROUTES FILE
match’auth/:provider/callback’ => ‘sessions#auth_callback’, :as =>
:auth_callback
match ‘logout’, :to => ‘sessions#destroy’

RAKE ROUTES OUTPUT
auth_callback /auth/:provider/callback(.:format) sessions#auth_callback
logout /logout(.:format) sessions#destroy

Sessions auth_callback controller method
def auth_callback auth = request.env[“omniauth.auth”] user =
Moviegoer.find_by_provider_and_uid(auth[“provider”], auth[“uid”]) ||
Moviegoer.create_with_omniauth(auth) session[:user_id] = user.id
redirect_to movies_path end

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs