使用 Ruby on Rails 构建用户 ID/密码功能? 矫枉过正?
我是这个社区的新手,但我正在开发一个需要在输入时实施用户/密码/注册检查的网站,这将在注册时检查数据库或写入数据库。 我有 XHTML 和 CSS 方面的经验,并且刚刚发现了 RoR。 老实说,我对如何仅使用 XHTML 来实现我的目标知之甚少,所以我决定学习 Ruby,在黑暗中尝试一下。 我想知道是否有一种更简单的语言,或者我应该实施的更直接的解决方案。 有什么想法吗?
I am new to this community, but I am working on a site that requires implementation of a user/password/register check upon entry, which would check against a database, or write to the database, in the case of registration. I have experience with XHTML and CSS, and just discovered RoR. I honestly have very little insight into how to achieve my goal using just XHTML, so I decided to learn Ruby, taking a shot in the dark. I'm wondering if there's an easier language, or more direct fix that I should be implementing instead. Any thoughts?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我建议查看Restful Authentication。
另外,对于一般的良好代码示例,请查看 Altered Beast。 这是一个用 Ruby on Rails 构建的论坛,并使用 Restful 身份验证。
I would recommend looking at Restful Authentication.
Also, for good code examples in general, have a look at Altered Beast. It's a forum built in Ruby on Rails and it uses Restful Authentication.
您是否正在寻找有关如何在 Rails 中实现用户身份验证的信息? 您可以尝试
acts_as_authenticated
。Are you looking for information on how to implement user authentication in Rails? You could try
acts_as_authenticated
.查看使用 Rails 进行敏捷 Web 开发。 它分为两部分:创建应用程序的分步演练和关于 Rails 的参考部分。 我最近开始了一份合同工作,我选择 RoR 作为我的框架,但没有任何经验。 这本书是我学习 Ruby on Rails 的巨大资源。 它还专门教导如何实现你所说的授权。
Check out the book called Agile Web Development with rails. It has two parts, a step-by-step walkthrough of creating an application, and a reference section on rails. I recently started a contract job where I chose RoR as my framework without any experience in it. This book has been an immense resource to teach me Ruby on Rails. It also specifically teaches how to implement the authorization you are talking about.