Aug
22
2010
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
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
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 »
Jun
25
2010
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 »