Archive: May, 2008

Remembering STP

This is one of the Stone Temple Pilots’s best song.



FNM – Rock In Rio II

One of the best live show ever !!!!

A lot of great bands, this is a sample (Faith No More).



Note about Rails (and other framworks)

As some of you know, I’m developing a web at home using RoR. This framework makes your life easier than before with all its utilities and work done by it that you don’t have to do. But there is something that can make you go crazy when you look for only a row in the database using an object. You can do it as follows:

     object = Object.find(:first, :conditions=>"id = #{foo_id}")

If you forget to include the part ‘:conditions=>’ and write

     object = Object.find(:first, "id = #{foo_id}")

rails will return the first row of the table, “id = #{foo_id}” will be lost in the twilight zone and you will go crazy looking for the problem (specially if you are a beginner like me).

I hope this helps to somebody.