Aston J

Rails Migrations – how I’m using them

Posted on: April 7th, 2012 by AstonJ 2 Comments

I’m fairly certain I am using them a little unconventionally, and just wondered – am I alone? Before going on I will add that I’m able to use them this way because a) the app is still in development, and b) I am the only developer.
More…

It’s not that Rails isn’t for beginners – it’s just that it’s not for the lazy.

Posted on: April 5th, 2012 by AstonJ No Comments

It seems fashionable to knock Rails as beginner unfriendly these days, but I think that’s unfair – because really, if there’s anyone it’s not for, it’s those who can’t be arsed to learn.

What actually is a beginner?

A person just starting to learn a skill or take part in an activity.

More…

Rails mass assignment security

Posted on: March 6th, 2012 by AstonJ 5 Comments

While Rails does a lot to secure your app, some things it leaves to you (as one size doesn’t fit all) and mass assignment security (MAS) is one such example. Rails does of course, make it easy for you to bolt things up, here’s how.

When will you need MAS?

Whenever you are accepting data from users, such as from a form via a params[:hash] and using update_attributes (and family) eg:
More…

Advanced Ruby & Rails books

Posted on: December 3rd, 2011 by AstonJ No Comments

This is the sequel to my Best way to learn Ruby & Rails post, if you’re new (or fairly new) to Ruby or Rails, read that first. In this post we look at books that help to get you from intermediate level to pro, although you’ll have to bear with me as this is currently my own journey too – and so this post will probably get edited, re-edited often (mainly to change the order of books).
More…

How to install MySQL on Lion (Mac OS X )

Posted on: December 2nd, 2011 by AstonJ 9 Comments

If you want to install MySQL on Lion it’s pretty easy, just head on over and download the DMG from mysql.com (for lion you’ll need the 64bit DMG Archive).
More…

Ruby Koans Answers

Posted on: November 30th, 2011 by AstonJ No Comments

Looking for the answers to Ruby Koans? Well you’re not going to get them here! But what I will do is show you how to get them and who to ask if you get stuck.
More…

The Pragmatic Bookshelf – my favourite tech publisher

Posted on: November 29th, 2011 by AstonJ No Comments

Having purchased quite a few programming books from various publishers recently, one has quickly become a firm favourite; The Pragmatic Bookshelf (AKA The Pragmatic Programmers.)
More…

How to split your home folder onto multiple drives

Posted on: November 24th, 2011 by AstonJ No Comments

This post is part of my series on Clean Lion install for Ruby Development.

Firstly, as far as I know there is no perfect way to do this – ideally you could tell OS X where each directory in your home folder lives (or points to)… and this could have easily been achieved by simple sym links – but – OS X doesn’t allow some folders in your home folder to be deleted! So this is the next best thing – a sym link inside these folders:
More…

How to set up photoshop for web design

Posted on: November 24th, 2011 by AstonJ No Comments

Firstly calibrate your monitor. Then in Photoshop:
More…

Setting up a Ruby dev enviroment on Lion

Posted on: November 24th, 2011 by AstonJ 2 Comments

This post is part of my series on Clean Lion install for Ruby Development.

Next we’ll set up our fresh dev enviroment for Ruby. Here we’ll cover installing and setting up:

  • GCC (required since Xcode no longer comes with it)
  • Homebrew
  • Xcode
  • Rbenv
  • Ruby 1.9.3
  • Rubygems
  • Rails
  • POW
  • MySQL & Unix set-up

More…

Categories

© 2012 @AstonJ's Blog About | Contact