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|
[...]
Those of you following this blog or my twitter stream probably know already that I spent last weekend attending RubyConf India in Bangalore. The conference was a huge success and I’m sure it helped inspire a lot of newbies like me.
Day 1
Along with the rest of the team from Foradian, I took a bus to [...]
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 [...]
I’ve wondered about how rails websites like Railscasts created SEO friendly URLs. I read this post by Obie Fernandez which explains how to do this.
I’ve never had to use SEO friendly URLs in my projects so far and I assumed that generating these URLs is very complicated and some plugin might be at work. And [...]
I registered for RubyConf India 2010 this morning. I was interested in the event anyway, but when the proposal for a presentation on Project Fedena by Arvind was selected that definitely made up my mind. The rest of Team Fedena – developers Aslam and Ralu, and designer Jaseem – have also decided to travel to [...]
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… [...]
Recently I was trying to find ways to import data from excel spreadsheets into the database in a rails project. We needed to save the data from the client’s excel file into the database. Here’s how it can be done using a rake task.
The file will have to be in CSV format, so you’ll have [...]
Find out how to set up ruby on rails development environment on windows.
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 [...]
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 [...]