使用 Ruby on Rails,创建用户注册和激活的最快方法是什么?
我想知道10到15分钟可以完成吗?
有没有最快的方法?
最优雅和最强大的解决方案可能是不同的吗?
I wonder if it can be done in 10 to 15 minutes?
Is there a quickest method?
Is the most elegant and robust solution possibly a different one?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
Devise 是正确的选择。自述文件应该可以让您在 10 分钟内开始使用。在 Rails3 应用程序中使用它应该不难。
Devise is the way to go. The README should get you started in 10 minutes. It shouldn't be really hard to use it in your Rails3 app.
如果您从头开始编写代码,我还建议提供 prologue 或 railswizard 尝试一下。否则我投票支持使用设计:)
If you are writing your code from the scratch, I would also suggest giving prologue or railswizard a try. Otherwise my vote goes for using devise :)
对于 Rails3 应用程序来说,绝对是 Devise ;)。但在设备上杀死我的一个限制是我还没有找到一种方法来定制设备的控制器。我提出了一个问题,但尚未得到一些答案 我想定制 devise gem 的控制器,是否可以以及如何做? .如果您的要求就像用户注册和整个 M、V 和 C 堆栈中的完整身份验证一样简单,那么 Devise 是目前最好的解决方案:)
For a Rails3 App definitely Devise ;). But one limitation killing me on devise is that I'm yet to find a way to customize the devise's controllers. I have raised a question this and yet to get some answers I want to customise devise gem's controllers, is it possible and how to do? . If your requirement is as simple as user registration and complete authentication throughout M , V and C stacks then Devise is the best solution for now :)