Aston J

Posts Tagged ‘rails’

Ruby dev environment (Yosemite)

Posted on: May 12th, 2015 by AstonJ 10 Comments

Having recently reformatted my Mac, I thought I’d jot some notes down on setting up a Ruby dev environment too.

In this post we’ll set up our fresh dev enviroment for Ruby, and cover installing and setting up the following…


Ruby is about to get red hot. Again.

Posted on: October 30th, 2014 by AstonJ 60 Comments

Widely regarded as the language of the web, Ruby’s always been pretty damn hawt. But now it’s about to get even hotter. AltRubies have been pushing Ruby into realms we never thought possible. Is Ruby set to become the preferred language of the browser? Of mobile apps? Of hardware, even? Let’s take a look at some of these alternative Rubies and the exciting things they bring with them…

Railscasts Alternatives

Posted on: July 10th, 2014 by AstonJ 6 Comments

As many of you might know, I LOVE Railscasts – and like many of you, I miss Ryan heaps. He has a knack of being able to make things look super easy; his screen casts enable you to learn a great deal in just a few minutes. I often joke that it is a bit like the Matrix – we look something up, then we know kung fu! Rails Kung Fu of course!

I don’t know about you, but my Rails learning has taken a severe dip since Ryan has been away (I hope you are ok Ryan!!) though, it has also tied in with some personal problems as well, which has left little time for learning anything to be honest.

But the time has come to get back into it, and I hope to put together a list of Railscasts alternatives to tie us over till Ryan comes back. If you can think of any that you feel should be included, please leave a note in the comments to let me know. (more…)

Capistrano/Whenever gem reporting OptionParser::InvalidOption on deploy

Posted on: January 8th, 2013 by AstonJ 1 Comment

If you’re getting this error (probably after a bundle update), all you need to do is comment out:

require "whenever/capistrano"

Form your deploy.rb file, then deploy as usual, then uncomment it, and deploy again. Simple huh?

How to install Vips on CentOS

Posted on: September 7th, 2012 by AstonJ 3 Comments

Vips is a brilliant new image processing library that is reported to be far more efficient than most other image processing libraries out there (such as ImageMagick). To install on CentOS simply: (more…)

How to create a user, database, and assign the user to the db in PostgreSQL

Posted on: August 10th, 2012 by AstonJ No Comments

Here’s a quick reference on how to create a user, a database and grant the user all privileges to the database (on Mac OS X). If you haven’t yet installed PostgreSQL, look here: How to install PostgreSQL on Mac OS X

How to install PostgreSQL on Mac OS X

Posted on: August 10th, 2012 by AstonJ 5 Comments

There are a number of ways to install Postgres on Mac, here’s three. While these instructions are for a clean install of Lion, they may work for Mountain Lion.

Learning Vim

Posted on: July 3rd, 2012 by AstonJ 1 Comment

If you’re interested in learning Vim you’re in luck – because there are some great resources out there. In this post I’m going to document the ones I’ve been using, in a step-by-step kinda way – hopefully making it easy to follow for anyone else keen on learning. By the end of it, you should (hopefully) no longer be a novice ;)

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: