2011-12-13 42 views
1

我一直在为在其他环境中工作正常的事物收到路由错误。当我把它们发送到Heroku OmniAuth的东西不起作用。Heroku上的Rails 3.1的RoutingError

的Rails 3.1.3 的Ruby 1.9.2-P290 OmniAuth 0.2.6

Started GET "/auth/?provider=google&return_site_id=2&return_session_id=54fb72dc1e6d29308fc6b6ec2b721889" for 76.x.x.x at 2011-12-12 20:17:33 -0800 
cache: [GET /auth/?provider=google&return_site_id=2&return_session_id=54fb72dc1e6d29308fc6b6ec2b721889] miss 
2011-12-13T04:17:33+00:00 heroku[router]: GET mysite.org/auth/ dyno=web.1 queue=0 wait=0ms service=2ms status=302 bytes=104 

Started GET "/auth/google" for 76.x.x.x at 2011-12-12 20:17:33 -0800 

ActionController::RoutingError (No route matches [GET] "/auth/google"): 

cache: [GET /auth/google] miss 
+1

你的routes.rb文件中有什么? – James

回答

1

我碰到了同样的问题(但使用OmniAuth 1.0点)。问题是由于没有在heroku上设置缓存存储引起的。

要修复它,请添加Memcache。按照heroku docs on adding Memcache并在config/environments/production.rb中添加config.cache_store = :dalli_store来解决您的问题。