推荐用于软件即服务应用程序的 Rails 插件
我正在研究潜在的 Rails 插件或 Gems 来帮助开发 SAAS 类型的应用程序。具体来说,我在两个方面寻求帮助:
根据帐户的计划限制对应用程序某些区域的访问。例如,青铜帐户允许访问某些功能,升级到银帐户可以解锁对新特性和功能的访问。基本上,只是控制哪些帐户有权访问哪些控制器。
管理订阅、开具发票和收取付款。该应用程序将按年或按季度收费,有 30 天免费试用期,无需预先支付详细信息,我认为其目的是使用 PayPal Website Payments Pro(尽管这不是一成不变的)。
鉴于上述情况,有人可以推荐任何 Gems 或插件吗?我已经看过 SAAS Railskit 并且我并不反对花一点钱。然而,我当然希望听到首先使用过它的人的好消息,以及选择 Railskit 并将其应用到我自己的应用程序中是多么容易(因为我不是从头开始 - 需要集成)也与 Authlogic 一起)。
预先感谢您的帮助。
I am investigating potential Rails plugins or Gems to help develop a SAAS type app. Specifically I am looking for help in two areas:
Restricting access to certain areas of the app based on the account's plan. For example, a bronze account allows access to some functionality, upgrading to silver unlocks access to new features and functionality. Basically, just controlling what accounts have access to what controllers.
Managing subscriptions, invoicing and taking payments. This app will be charging on an annual or quarterly basis, there's a 30 day free trial with no payment details needed up front, and I think the intention is to use PayPal Website Payments Pro (although that is not set in stone).
Given the above, can anyone recommend any Gems or plugins? I have had a look at the SAAS Railskit and I am not opposed to spending a bit of money. However, I'd certainly want to hear good things from people who have used it first, and also how easy it is to pick appart the Railskit and apply it to my own application (as I am not starting from scratch here - needs to integrate with Authlogic too).
Thanks in advance for your help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
Bruno Bornsztein 提供了一个实施 SaaS 站点的 Rails 引擎。在 GitHub 上查找 striped_rails。
您可能想查看Rails 会员资格/订阅的开源示例应用程序来自 RailsApps 项目的 /SaaS 站点。它附带了一个教程,详细解释了实现过程。它使用 Devise 进行身份验证并使用 Stripe 进行计费,从而执行您所描述的操作。
Bruno Bornsztein offers a Rails engine that implements a SaaS site. Look for striped_rails on GitHub.
You might want to look at the open source example application for a Rails Membership/Subscription/SaaS Site from the RailsApps project. It comes with a tutorial that explains the implementation in great detail. It does what you describe using Devise for authentication and Stripe for billing.
我的 SaaS Rails Kit 确实与预先存在的应用程序集成得很好......我的许多客户都这样做。而且现场的评价都是真实的。 :) 另外,还有许多其他类似的推荐,我还没有发表——人们对此说了很多好话。 :)
My SaaS Rails Kit does integrate well with pre-existing apps... many of my customers do that. And the testimonials at the site are real. :) Plus there are many other similar testimonials that I haven't published -- a lot of good things have been said about it. :)
虽然有很多不同的宝石以不同的方式做不同的事情,但我绝对建议您从这些开始:
activemerchant — 我会用它来进行付款处理。老实说,它是最好的(也是最可扩展的)宝石,而且它特别针对 PayPal 使用进行了良好的测试,尽管我会在其他地方寻找 SaaS 计费,因为 PayPal 完全是垃圾。
declarative_authorization — 这可能是最可扩展的授权插件,它允许不同的用户具有不同的角色做不同的事情。例如,您可以为每个计划构建角色。
您还应该查看以下 Railscast:
希望这有帮助!
While there are quite a few different gems out there which do different things different ways, I would definitely suggest that you start with these:
activemerchant — I would use this for payment processing. It is honestly the best (and most extensible) gem out there, and its especially well-tested for PayPal usage, although I'd look elsewhere for SaaS billing because PayPal is utter crap.
declarative_authorization — This is probably the most extensible plugin for authorization, which allows different users with different roles to do different things. For instance, you can build roles for each plan.
You should also take a look at the following Railscasts:
Hope this helps!
您还需要 子域路由,用于将您的用户限制在其自己的子域中。
You would also need subdomain routes, for restricting your user into its own subdomain.