2013-04-08 52 views
1

我最近將項目從3.1升級到了Rails 3.2,並一直在試圖弄清楚爲什麼路由不能很好地與devise一起玩。Rails升級到3.2路線/區域設置失敗

NoMethodError - undefined method `locale' for #<ActionDispatch::Request:xxxxx>: 

這是新的(1)Journey路由引擎。現在的問題是Devise只有其他模塊沒有錯誤。我可以說這個問題在我的範圍內使用。如果我準備好範圍,它就可以工作。

scope "(:locale)", :locale => /#{I18n.available_locales.join("|")}/ do 
    devise_for :users, :controllers => { :registrations => "users/registrations" } 
    ... 
end 

1)Line 7(133)。請參閱跟蹤和Journey line error in context here.

任何意見和指導表示讚賞。謝謝。

的Rails 3.2的Ruby 1.9.3

回答