2011-12-13 44 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來解決您的問題。