Posts

Showing posts from 2012

Rails 3.2 with Ruby 1.9.3 on Heroku

If you are looking at deploying your Rails App on Heroku then read the excellent article by Daniel Kehoe, Tutorial: Rails 3.2 with Ruby 1.9.3 on Heroku.

Version control with Git

This post outlines the essential commands for placing your code under version control with Git. I assume you have installed Git, if not see Pro Git  for information on how. I recommend the  Git Reference  as a good summary of the Git commands. Initial setup After installing Git setup your environment: git config --global user.name "Your Name" git config --global user.email your.email@foobar.com New repository setup Change directories to the root directory of your project and initialise a new repository: git init Now you can see that there is .git directory in your project. Git uses a .gitignore file to control which files to ignore when adding to the repository. In my example I am using a Rails application and that file was automatically generated for me when I created the Rails application. Edit the .gitignore file to your liking: # Ignore bundler config /.bundle # Ignore SQLite database. /db/*.sqlite3 # Ignore logfiles and tempfiles. /log/*.log /tmp # I

Getting started developing with Ruby on Rails 3

Image
I recommend the following books to get you started developing with Ruby on Rails 3. Firstly, Ruby on Rails 3 Tutorial: Learn Rails by Example by Michael Hartl. This is a must read for aspiring Rails developers. The tutorial hands-on style makes it a very accessible read. You will be developing Rails code under version control with Git and deploying to Heroku in no time at all! You can also view the tutorial online . Then to gain a deeper understanding of Rails I recommend Rails 3 Way by Obie Fernandez. Another great book that will walk you through step by step how to build a real world application is  Agile Web Development with Rails (Pragmatic Programmers) . After finishing these books and you find that you want deeper understanding of Ruby then try Beginning Ruby: From Novice to Professional  by Peter Cooper or The Ruby Way, Second Edition: Solutions and Techniques in Ruby Programming (2nd Edition) by Hal Fulton. If your looking to learn quickly the starting pieces for buildi