我正在将门卫升级到 6.7,但我对 use_doorkeeper 有疑问:
我按照迁移说明进行了以下操作:
我升级前的路线:
scope "(:locale)", :locale => /.{2}/ do
...
mount Doorkeeper::Engine => '/oauth', as: 'doorkeeper'
...
end
我升级后的路线:
scope "(:locale)", :locale => /.{2}/ do
...
use_doorkeeper
...
end
现在,在我看来,这一行(和其他行)出现错误:
<td><%= link_to application.name, [:oauth, application] %></td>
路由错误
没有路由匹配 {:action=>"show", :controller=>"doorkeeper/applications", :locale=>#< Doorkeeper::Application id: 5, name: "My App", uid: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx... ", secret: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...", redirect_uri: " http://www.myapp.com ", created_at: "2013-08-26 14:33:38", updated_at: "2013-08-26 14: 33:38">}
看来门卫应用程序正在进入语言环境参数。
任何想法?