bits about life, coding and stuff
…because ssh’in and updating all this code manually is so 2006. Enter Capistrano! It’s for web what make is for c. It’s simple, widely used and even those php kids begin likein’ it! A tool which make subsequent deployments to your webserver much easier.
cat ~/.ssh/id_rsa.pub | ssh user@domain.com "cat >> .ssh/authorized_keys2
Needed some git magic today. Still feelin like Harry Potter VS Lord Voldemort (psssst. Hard fight, but won =)
Ever wondered what “freeze your gems” is all about? Most rails app depend heavily on gems (rails itself is a gem!) and we somehow need to make sure that everything works together. And you really should care about this.
Just had the problem, that I wanted a has_many association in my model with a condition from a value of the same model. Turns out this is quite hard. I know there are named_scopes, but a has_many is needed if you want to use rails’ great query methods. You see, this condition is parsed at [...]