Archive from January, 2012

Understanding Gemfile Dependencies

Understanding Gemfile Dependencies

I really struggled with this while learning Rails. In the Gemfile, I thought you could have groupings of Gems that [...]

Jan 24, 2012     4 Comments
Read More
Easy inline if-then-else for Rails

Easy inline if-then-else for Rails

Instead of something bloated like: name = "-" unless User.name.nil? name = User.name end You can do it all in [...]

Jan 20, 2012     No Comments
Read More
Installing Rails or Rails Gems without Ri and RDOC documentation

Installing Rails or Rails Gems without Ri and RDOC documentation

use the –no-ri –no-rdoc switches, like rails install –no-ri –no-rdoc

Jan 18, 2012     No Comments
Read More
Removing the passphrase from SSH keys

Removing the passphrase from SSH keys

I never can remember this: Removing a passphrase from your id_rsa key Backup your id_rsa file! Then, openssl rsa -in [...]

Jan 17, 2012     No Comments
Read More