ruby on rails - What would be a good way to separate different types of user account? -


supposing various type of users, 'normal', 'medium' , 'premium' each 1 different permissions.

a kind of permission on permission.

for example:

  • only registered users can post
  • a normal user can post 1 post per month
  • a medium user can post 5 posts per month
  • a premium user can post unlimited posts per month

and other attributes.

what suggest?

i suggest @ can can.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -