Aug 22 2010

Install RVM, Passenger, Nginx and Rails 3 on Ubuntu Lucid Lynx

RVM Rails3 Ubuntu Ruby192 | comments

This has been a problem encountered by several developers including myself:

Getting RVM, Passenger and Rails3 to work

Here's a quick and short post. Supposing you already have updated Ubuntu and have Ruby installed.

Continue reading »
Aug 16 2010

Rails 3 Upgrade Resources

Rails3 Ruby | comments

Many of us have several existing 2.x applications and would want to upgrade without pulling our hair because we can't figure out something or we are wary of consuming too much time. I'm about to post several links where you could find useful advice on upgrading Rails 3. Feel free to share other links if you know some.

Continue reading »
Jul 25 2010

Why You Might Not Use Named Scopes In Rails3

Rails3 Arel ActiveRecord | comments

It's interesting how Rails 3 querying is a lot easier than it was before.

Simple Task: Get all posts that are promoted to front page.

Some apps probably do not use the field "promoted" primarily because there's a published field then all published posts will be promoted on front page. But in Drupal, nodes have promoted field and I think most apps should too. Sometimes you wouldn't want to show everything on the front page or want some post on top of the list of posts.

Continue reading »
Jul 02 2010

When And Why Should You Use Drupal or Rails For Projects

Drupal Rails Opinion | comments

There are several reasons why we used Drupal. Even if I am a Rubyist, I also use Drupal (PHP5) for certain reasons.

When and Why Should You Use Drupal?

Continue reading »
Jun 25 2010

Automatically Start PostgreSQL on Mac OS X

Mac Leopard PostgreSQL | comments

Why bother remembering very long commands?

There is a shell script for automatically starting, stopping and restarting PostgreSQL if you have installed PostgreSQL on /usr/local. In fact there is a shell script for nearly every redundant task for developers and Linux system administrators (even spammers).

Continue reading »