blog

Amazon EC2 and MongoDB configuration for great performance

Sometimes, we prefer using Amazon EC2 directly for our Rails stack. No offense  to Heroku but we need a more controlled environment; and no offense to EngineYard as they don't support MongoDB on their environment as yet. We were faced with several problems that we wanted to solve Control our environment without MongoDB hogging all … Continue reading Amazon EC2 and MongoDB configuration for great performance

How To Manage Roles & Permissions Dynamically Using Cancan

Most of us already use cancan for authorization, where we define the Role Based Access (RBAC) to various models in the Ability class. However, any changes to these abilities, requires code changes to the Ability class and restarting the application for the changes to take effect. What if we could assign these permissions dynamically? That … Continue reading How To Manage Roles & Permissions Dynamically Using Cancan