Archive › Ruby

Ruby Version Manager

I’ve been meaning to start using ruby1.9 but always stuck at maintaining codes in production that depends on Ruby1.8.6. Fortunately, there’s this thing called Ruby Version Manager where you easily change between different rails version. I have nothing but praise for the guys who made life easier for us programmers to do our job better [...]

Comments ( 0 )

Updating Ruby on Ubuntu 8.04

Pheww.. all test pass after the latest ruby package updates from the ubuntu team. I was a little worried reading the comments from the official Rails site. From the comments, a lot of people are experiencing problems after using the patch provided by the official Ruby team. However, today I received an update notification on [...]

Comments ( 0 )

Quote Phobia

I don’t get it why some people write this %(Unverified email address. Please check your email for your activation code.) instead of this “Unverified email address. Please check your email for your activation code.” Is it that hard to put those double quote?

Comments ( 0 )

to_proc or not to proc

Instead of writing this Profile.find(:all).collect{ |x| x.email } I could write this using Rails’ Symbol#to_proc Profile.find(:all).collect(&:email) Nice.

Comments ( 0 )

Ruby Cheatsheet Part Two!

Finally, part 2 of the Ruby Cheatsheet is now complete! Click here to download the file from Scribd, which, by the way, is also an excellent site for lots of stuff… so kudos to the Scribd crew… Part two gets you acquainted with the built-in stuff ruby provides to make your coding life easier and [...]

Comments ( 0 )

Hello World

[sourcecode language='ruby']puts ‘Hello World’[/sourcecode]

Comments ( 0 )

Ruby Syntax Cheatsheet

For all us Ruby on Rails newbies, it’s really important to know Ruby, the language, before jumping into Rails. Learning Rails without knowing Ruby is like doing bike stunts without learning how to ride. Major pain bro… Save yourselves from major cranial meltdown by learning Ruby syntax first. It shouldn’t be too hard if you [...]

Comments ( 2 )