云服务 Heroku Routing 问题

bryanwong · February 14, 2012 · Last by fresh_fish replied at February 14, 2012 · 3170 hits

routes.rb

# auth 
match '/auth/:provider/callback' => 'sessions#create'
match '/auth/failure' => 'sessions#failure'
match '/signout' => 'sessions#destroy', :as => :signout
match '/signin' => 'sessions#new', :as => :signin

访问 mapppp.herokuapp.com/auth/twitter,返回 The page you were looking for doesn't exist.

没有使用 devise,只用了 omniauth 让用户选择第三方登陆。

貌似找到原因了。

heroku logs
cache: [GET /auth/twitter] miss

缺少了 Memcache http://stackoverflow.com/questions/8484397/routingerror-for-rails-3-1-on-heroku

你确定是同一个问题?貌似就没有对应/auth/twitter 的路由哦

You need to Sign in before reply, if you don't have an account, please Sign up first.