Rails: Avoid multiple level nested resource routes

While generating RESTful routes in rails, it is easy to get carried away and generate many levels of nested resources for every level of has_many associations. For instance, I recently wrote something like this in my routes file:
# in config/routes.rb
map.resources :first_resources do |first|
first.resources :second_resources do |second|
[...]

Bukluv enters beta

Bukluv is the idea for an application that I, along with Mohammed Aslam, came up with a few months ago. It is a social networking site for book lovers and allows registered users to post short reviews that are limited to 250 characters.
We’ve been playing around with a very basic version of the app in [...]

Rails: Thinking Sphinx plugin for search

Just a couple of weeks into being a rails developer, I made the one really, really, really big blunder — I used a find_by_sql in a search page. (Oh, please… stop booing. I was a newbie then.) Now, I’ve realized that I might have to modify the search to add yet another column, and well… [...]

First impressions: Ruby Encoder for ruby source code encryption

About a week ago at work, I was asked to evaluate Ruby Encoder, an application to encrypt the source code of your ruby application.
Normally, you wouldn’t want to encrypt the source code of your ruby applications. The code resides on your server and there’s no way anyone else can access it. However, if you are [...]

Rails: "500 – Internal server error" caused by error in application.rb

Today, while working on my Ruby on Rails project, I got a “500 – Internal server error” page soon after I tried to run the project after running a migration. There was nothing else on the screen except for that one line.
I tried a few things, like restarting NetBeans, and opening another project to see [...]