Aston J

Archive for June, 2012

Vim for Ruby on Rails (and a sexy theme!)

Posted on: June 28th, 2012 by AstonJ 56 Comments

This post started off as a small guide mainly for my own reference, but it’s grown into a good overview of why Vim is so great for Rails development – if you’re unconvinced, just read through the killer commands listed below… you’ll soon see how Vim could make life a lot easier for you – and I’m only scratching the surface here!

How to get Capistrano to ignore upload directories (Carrierwave)

Posted on: June 23rd, 2012 by AstonJ 7 Comments

As you probably know, Capistrano creates a fresh directory for your app every time you deploy a new version. So if you want some directories (or files) to be carried through to each version, such as files uploaded by users, then we just need to tell Capistrano that they are shared – and to use the /shared directory for these files instead. Which is done by creating symbolic links. Here’s how.

Add this to your deploy.rb file:

Intro to Git – 5 mins to see why it’s awesome

Posted on: June 9th, 2012 by AstonJ No Comments

This is more a handy reference for myself, but it also acts as a very quick intro to why git is awesome and well worth using. The main difference here is I remind you what the state of your working directory is as you make changes (as this was what confused me previously – as I wasn’t quite sure what was going on). I assume you’ve installed git already – and know what it is.