云服务 Heroku Routing 问题

bryanwong · 2012年02月14日 · 最后由 fresh_fish 回复于 2012年02月14日 · 3170 次阅读

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 的路由哦

需要 登录 后方可回复, 如果你还没有账号请 注册新账号