New Articles and Resources
-
ARGF, a Shortcut for Scripts
Created:
Tuesday, April 30, 2013
Updated:
Tuesday, April 30, 2013
A common task for command line scripts is to read all files listed on the command line, and Ruby has a shortcut for that: the ARGF object. -
TrueClass, FalseClass and NilClass Quick Reference
Created:
Tuesday, April 30, 2013
Updated:
Tuesday, April 30, 2013
These are truly objects you never see or think about, but it's difficult (if not impossible) to write a meaningful program without them. -
Exception Quick Reference
Created:
Tuesday, April 30, 2013
Updated:
Tuesday, April 30, 2013
Exceptions are used often in Ruby, and there's a bit more you can do with the exception objects than catch them and print out an error message. -
Bignum Quick Reference
Created:
Monday, April 29, 2013
Updated:
Monday, April 29, 2013
While the Bignum is not a class you'll encounter directly, you've probably used it a few times without even noticing it. This article tells you a bit about how it works and what you can do with it. -
IO Quick Reference
Created:
Sunday, March 31, 2013
Updated:
Sunday, March 31, 2013
You use IO methods all the time: gets and puts. However, there are more options available to you, should you need them. -
String Quick Reference
Created:
Sunday, March 31, 2013
Updated:
Sunday, March 31, 2013
The Ruby String class has well over 100 methods, this is a difficult minefield to navigate when you're just starting out. This article cuts through all the noise and just tells you what you need to... -
Hash Quick Reference
Created:
Saturday, March 30, 2013
Updated:
Saturday, March 30, 2013
As Ruby releases move forward, more and more methods get added to the base classes. This article cuts through all the noise and just tells you what you need to know to be able to work with hashes. -
Array Quick Reference
Created:
Saturday, March 30, 2013
Updated:
Saturday, March 30, 2013
The Array class has over 90 methods, plus others inherited or brought in from other modules. This article cuts through the noise and just tells you what you need to know about Arrays. -
RubyMine 5.0
Created:
Friday, February 15, 2013
Updated:
Friday, February 15, 2013
I've always been a Vim person. Just give me a good solid editor and I'll take it from there. But I decided to give RubyMine a good honest try, and here's what I think about it. -
Step 4: Working on the Views
Created:
Thursday, February 14, 2013
Updated:
Thursday, February 14, 2013
Now that things are working correctly, it's time to make this actually look like a blog. We finally ditch the views generated by the scaffold generator, implement pagination and even RedCloth forma... -
Step 3: Authentication with Devise
Created:
Wednesday, February 13, 2013
Updated:
Wednesday, February 13, 2013
Before we get too invested in our blog, we need to set up some authentication. Since the goal is to allow users to register and post comments, we'll also need a way to differentiate between normal ... -
Step 2: Integrating a Wordpress Theme
Created:
Tuesday, February 12, 2013
Updated:
Tuesday, February 12, 2013
The scaffold generator gave us something rather spartan, let's spruce this up by adapting a Wordpress theme to work with our shiny new blog. -
Step 1: Scaffolding Posts
Created:
Tuesday, February 12, 2013
Updated:
Tuesday, February 12, 2013
Without a framework like Rails, and particularly the scaffold generator, getting up and running with any project was a pain. You'd be doing a lot of configuring and planning and typing out all the ... -
Creating a URL Shortener in Rails
Created:
Tuesday, February 05, 2013
Updated:
Tuesday, February 05, 2013
The following is a list of articles that will show you how to write, style and deploy a URL shortener (like TinyURL) application in Ruby on Rails. -
Part 5: Deploying
Created:
Tuesday, February 05, 2013
Updated:
Tuesday, February 05, 2013
Deploying your web application on Heroku is much easier than it sounds. In fact, there's really only one hurdle to clear: porting your application to PostgreSQL. And even that is relatively simple,... -
How to Perform List Operations in Ruby
Created:
Monday, February 04, 2013
Updated:
Monday, February 04, 2013
If you're familiar with Lisp, you're familiar with list operations. And if you're coming from Lisp (or a Lisp variant), or from another functional programming language, you may be wondering how to ... -
Part 4: Styling
Created:
Thursday, January 31, 2013
Updated:
Tuesday, February 05, 2013
Now that we have a working application, let's make it look a bit better. -
Part 3: Implementing
Created:
Wednesday, January 30, 2013
Updated:
Tuesday, February 05, 2013
In this part, we'll implement a complete working application. -
Part 2: Bootstrapping
Created:
Wednesday, January 30, 2013
Updated:
Tuesday, February 05, 2013
In this article, we'll explore our intended implementation and what it means as the Rails router is concerned. -
Challenge: Sequence of Integers
Created:
Tuesday, January 29, 2013
Updated:
Wednesday, January 30, 2013
A challenge: Given an integer, write a method that takes an integer and must return an array containing all the integers from 1 to that integer. -
Part 1: Brainstorming
Created:
Tuesday, January 22, 2013
Updated:
Tuesday, February 05, 2013
URL shortening is a useful feature for any Rails application. Making it easy for people to share links to your content is always a good thing. -
What is a Controller?
Created:
Monday, December 31, 2012
Updated:
Monday, December 31, 2012
What is a Controller in a Ruby on Rails project? Models and views are often easier to understand, but what is the role of the controller? -
Rails Application Flow
Created:
Sunday, December 30, 2012
Updated:
Sunday, December 30, 2012
When you program with any framework, you relinquish flow control in favor of convenience. The following is a description of what happens to a request as it passes through Ruby on Rails. -
Part 4: Integrating Devise
Created:
Tuesday, December 18, 2012
Updated:
Sunday, December 30, 2012
Now that we have Devise installed, it's time to integrate it into the application. -
Part 3: Installing Devise
Created:
Tuesday, December 18, 2012
Updated:
Sunday, December 30, 2012
Reddit wouldn't be much without users. In this tutorial, we install Devise as our authentication solution and get ready to integrate it. -
What is ActiveRecord?
Created:
Friday, November 30, 2012
Updated:
Friday, November 30, 2012
What is ActiveRecord? What can you do with it? -
Reddit Clone in Rails Part 2: Posts
Created:
Thursday, November 29, 2012
Updated:
Thursday, November 29, 2012
In this tutorial we'll use the scaffold generator to generate the Post model. We won't quite dive into the web interface yet, we'll take a look at ActiveRecord relations and work a bit in the conso... -
Reddit Clone in Rails Part 1: Setting up
Created:
Thursday, November 29, 2012
Updated:
Thursday, November 29, 2012
In this tutorial we'll set up the project. We'll generate the Rails project, set up git, and create a dummy User model we'll need for the next step. -
Using Git with Ruby
Created:
Thursday, November 29, 2012
Updated:
Thursday, November 29, 2012
Git is a powerful and convenient source code control manager. It's a good fit with both Ruby and agile development as well. -
Keyword Arguments
Created:
Tuesday, November 27, 2012
Updated:
Tuesday, November 27, 2012
Until Ruby 2.0, Ruby has not had true keyword arguments. You could simulate them using a hash, but as of Ruby 2.0 there's no longer any need to do that. -
Refinements: Monkeypatching Made Safe
Created:
Tuesday, November 20, 2012
Updated:
Tuesday, November 20, 2012
Monkeypatching base classes in Ruby is a typical Rubyism. It's too expressive and flexible to ignore. But there's always a downside, and in this case you're redefining how base classes (such as S... -
What's New in Ruby 2.0.0?
Created:
Tuesday, November 13, 2012
Updated:
Thursday, November 29, 2012
The Ruby 2.0.0 preview 1 release was just pushed out, what can you expect in this shiny new version?
