I’m looking to create an app that has a tiered account plan. I’d have free accounts and premium accounts.
What I’m looking for is a nice plug-in to help handle this throttling/authorization for me. I’m looking at CanCan as it seems to be the defacto, and Mr. Bates is awesome, but I had a question.
With CanCan, are you able to say, limit the times a user can complete the create action? I’d like to make it so a Free account can only create a certain number of projects or other model objects, is this possible CanCan?
Anyway, I’d just like some help getting started with Authorization plug-ins, preferable onces that have built in methods for throttling activity.
You could probably get this with CanCan using blocks to define the abilities. Something like
I would create a model method for this anyway.
user.has_reached_limit?oruser.on_plan_limit?Hope that helps,
NHI