为 OmniAuth 编写 paths.rb 的 RESTful 方式
目前我为 OmniAuth 设置 config/routes.rb 如下:
match "/auth/:provider/callback" => "sessions#callback"
match "/logout" => "sessions#destroy", :as => :logout
是否有任何方法可以使用更 RESTful 的方式(例如使用 resources 或 device_for)为 OmniAuth 设置 paths.rb?
Currently I set the config/routes.rb for OmniAuth as follows:
match "/auth/:provider/callback" => "sessions#callback"
match "/logout" => "sessions#destroy", :as => :logout
Are there any ways to set up routes.rb for OmniAuth with more RESTful ways like using resources or device_for?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论