使用 Ruby on Rails 构建用户 ID/密码功能? 矫枉过正?

发布于 2024-07-06 22:40:39 字数 198 浏览 9 评论 0原文

我是这个社区的新手,但我正在开发一个需要在输入时实施用户/密码/注册检查的网站,这将在注册时检查数据库或写入数据库。 我有 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

烂人 2024-07-13 22:40:39

我建议查看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.

笛声青案梦长安 2024-07-13 22:40:39

您是否正在寻找有关如何在 Rails 中实现用户身份验证的信息? 您可以尝试 acts_as_authenticated

Are you looking for information on how to implement user authentication in Rails? You could try acts_as_authenticated.

汐鸠 2024-07-13 22:40:39

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文