我应该使用哪些 Rails 插件?

发布于 2024-07-29 06:49:55 字数 237 浏览 9 评论 0原文

几年前,我出于兴趣学习了 Rails,但现在我又重新开始学习 Rails,因为我想尝试建立一个简单的付费广告利基招聘网站,并添加一些花哨的功能。 我学到的许多 Rails 书籍都给出了如何构建购物车或用户身份验证系统的示例,但在网络上环顾四周,似乎有许多插件提供了许多这种常见的功能。 然而,插件的选择非常多,我很难知道应该使用哪些插件。

所以我的问题是:您会推荐使用哪些(如果有)rails 插件来构建 Rails 站点,为什么?

I learnt rails a couple of years ago out of interest, but now I'm coming back to it because I want to try and build a simple pay-to-advertise niche job site with a few bells and whistles. Many of the rails books I learnt from gave examples of how to build a shopping cart or user authentication system, but looking around on the web there seems to be many plugins that a provide a lot of this common functionality. The choice of plugins however is very large and it's difficult for me to know which ones I should be using.

So my question is this: which (if any) rails plugins would you recommend for building a rails site, and why?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(3

ま昔日黯然 2024-08-05 06:49:55

实际上有大量的 Rails 插件(和 gem)可以为您提供所需的功能,我将在这里列出一些我曾经使用过的插件。

  • Authlogic:这是一个非常棒的插件。 它通过页面上的 before_filters 为您提供强大的身份验证,并且没有我在 Restful Auth 中注意到的任何奇怪之处。 您可以在此处找到代码,以及示例应用程序此处
  • ActiveScaffold: 这对于构建“管理界面”非常有用。 它非常强大,开箱即用,看起来非常漂亮。 唯一的缺点是官方最新版本还不支持Rails 2.3.2。 您可以在此处获取它
  • 回形针: 这可以帮助您在 Rails 中处理文件上传。 它内置了对缩略图的支持(我相信您需要 ImageMajick)以及 Amazon S3。 您可以在此处阅读
  • SubdomainFu:虽然有时有点奇怪,但如果您在任何给定项目中需要子域,那就非常好。 如果您需要这种功能,请随时获取它 这里

还有很多,但我没有时间全部列出。 如果您需要某项特定功能,请务必在推出自己的功能之前先通过 Google 搜索,因为可能有一个解决方案可以完美满足您的需求。

There are literally tons of rails plugins (and gems) to give you the functionality you need, and I'll list some of the ones here that I've had experience with.

  • Authlogic: This is a fantastic plugin. it gives you powerful authentication via before_filters on your pages, and comes without any of the weirdness that I seem to notice in Restful Auth. You can find the code here, and an example application here
  • ActiveScaffold: This is great for building out an "admin interface". It's extremely powerful, and looks very nice out of the box. The only downside is the official latest release does not yet support Rails 2.3.2. You can get it here
  • Paperclip: This helps you when working with file uploads in rails. It has built in support for thumbnailing (I believe you need ImageMajick), as well as Amazon S3. You can read up on it here
  • SubdomainFu: While a little strange at times, it's very nice if you need subdomains in any given project. If you need that kind of functionality, feel free to grab it here

There are plenty more, but I don't have time to list them all. If you ever have need for a specific piece of functionality, always Google for it before rolling your own, because there may be a solution out there that fits your needs perfectly.

初心未许 2024-08-05 06:49:55

我推荐 authlogic 进行身份验证。 最流行的两个是 authlogic 和 Restful_authentication。 我还没有做过任何购物车的事情,但有一些宝石可以与贝宝和活跃商家集成。

i recommend authlogic for authentication. the two most popular are authlogic and restful_authentication. I haven't done any shopping cart stuff but there are gems out there for integration with paypal and activemerchant.

下雨或天晴 2024-08-05 06:49:55

我推荐以下内容:

I recommend the following:

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