Archive for the ‘Ruby on Rails’ Category

Migration Timestamps deleted_at Magic Field

I was recently working on a project using edge rails and saw that it supported something like what used to be called sexy migrations. Basically, you can make your migration files look a whole lot cleaner.
Before
class CreateUsers < ActiveRecord::Migration
def self.up
create_table :users do |t|
t.column [...]

Read the rest of this entry »

Tuning a Pack of Mongrels

After having installed mongrel and mongrel_cluster, I began reading the Tuning article. This article is basically in response to people asking “How many mongrels should I have?” The quick answer is it depends.
The article talks about how to determine what you need because every situation is different. Some of the steps they talk [...]

Read the rest of this entry »

Exploring Mongrel… Finally

Well, it’s time for me to learn about mongrel and mongrel cluster.
What is Mongrel?

Mongrel is a fast HTTP library and server for Ruby that is intended for hosting Ruby web applications of any kind using plain HTTP rather than FastCGI or SCGI.

Mongrel was created by Zed Shaw and modeled after a Java web server framework [...]

Read the rest of this entry »

Ruby on Rails Resources for Newbies

I’ve had a couple of friends ask me about learning Ruby on Rails recently. I thought I might put together a few of the resources that I used to learn. Hopefully it will help others.
Books

Why’s (Poignant) Guide to Ruby
Agile Web Development with Rails by Dave Thomas and David Heinemeier Hansson with Leon Breedt, [...]

Read the rest of this entry »

RailsConf 2007: Community

Part of the reason I attended RailsConf this year was for the community. When I first started learning Rails, I was alone. Literally, I would sit by myself at home for 12 hours a day trying to learn. Don’t get me wrong, I think I learned a lot and that was great [...]

Read the rest of this entry »

RailsConf 2007: Technology

This is the first article in a series about my experiences at RailsConf 2007. Specifically it will talk about the tutorials and sessions I attended from a technology perspective. They are taking a while to come out because I have been swamped with work after taking the whole week off for the conference.
There [...]

Read the rest of this entry »

RailsConf donations

During RailsConf 2007, the organizers encouraged the community to donate money for good causes. I just read that the total so far is $33,000. That is a great showing from the Ruby on Rails community. Great job!
They may still be accepting donations, so please help out.

Read the rest of this entry »

Back from RailsConf 2007

I returned home late last night from an extended trip to Portland for RailsConf 2007. My wife, Kelly, and I decided to go early and check out Portland since neither of us had been there before. Portland is a great city. They have a vibrant downtown area, great public transportation system, and [...]

Read the rest of this entry »

RailsConf 2007

I’ll be attending RailsConf 2007 in Portland, OR this year. Before I attend that, I thought it would be a good idea to view some of the information from last year. I just finished David Heinemeier Hansson’s keynote from the 2006 conference. Watch the video and follow along with the slides. [...]

Read the rest of this entry »

Ruby Time Limitations

I ran across a strange problem recently dealing with the Ruby Time class. It seems that there is a limit imposed by various platforms as to the minimum value of a Ruby Time object. The problem reared it’s head when I was creating a Ruby on Rails application that contained a user birthday. [...]

Read the rest of this entry »