Category Archives: web programming

rails-authorization-plugin first impressions

I started using the rails-authorization-plugin last week. It is a really awesome and flexible plugin. I don’t have much to say about it yet. But there is one thing that I find confusing: In order to set a role for a user, you can do it like this: user.is_admin_for(group) To check if a user has a role, you can [...]
Also posted in developer tools | Tagged , , , , | Leave a comment

migrating from SQLite to PostgreSQL via Heroku

I had been using SQLite in my development environment, and PostgreSQL in the beta environment for one of my projects, until today. I decided to change to PostgreSQL. I think it's a good (and almost essential) practice to use the same tools/libraries on development, beta and production.
Also posted in developer tools | Tagged , , , | Leave a comment

Apache configuration best practice

You should follow this pattern: 1. Place all the VirtualHosts configurations in /etc/httpd/conf.d/ as .conf files (eg. www.example.com.conf) 2. Place general Apache configuration in /etc/httpd/conf/httpd.conf
Also posted in linux/unix world | Tagged , , , , | Leave a comment