Category Archives: Ruby on Rails

Eastern US is Fertile Ground for Ruby Development

As I was perusing jobs on Rubynow I thought I was seeing a concentration of jobs in Florida, New England, and the Washington DC area. To test the idea a little, I decided to throw a sampling of the recent … Continue reading

Posted in marketing, Ruby on Rails | Leave a comment

Are Ruby Session ID’s Secure?

The question of the security of cookie-based session storage in Rails has pretty much been settled it seems to me. Out of the box, Rails uses cookie-based session storage. When you generate a new Rails app you get a nice … Continue reading

Posted in Ruby, Ruby on Rails, security | 3 Comments

Thought Propulsion™ is Go For Burn

The Thought Propulsion™ corporate site is up and running. For the technically inclined, here are some interesting facts: hosted on Amazon EC2 using the extremely slick EC2 On Rails Ubuntu/Ruby on Rails virtual appliance there’s a tasty microformatted hcard on … Continue reading

Posted in design, iPhone, OpenID, Ruby on Rails, Web as Platform | 3 Comments

Rails Vendor Branch Limbo

I’m upgrading a project from Rails 2.0.2 to Rails 2.1. This thing uses Comatose 0.8.1. Unfortunately, Comatose 0.8.1 isn’t compatible with Rails 2.1. Fine, I’ll just upgrade to Comatose 2.0 (uber-alpha) and that’ll work. Oops, Comatose 2.0 uber-alpha breaks Rails … Continue reading

Posted in One Step Forward, Ruby on Rails | 3 Comments

Agnostic Unobtrusive JavaScript

A few weeks ago I wrote about Unobtrusive JavaScript using the Prototype versus JQuery stacks. In that post I came down on the side of the JQuery stack. Something I didn’t analyze at the time, was: is it possible to … Continue reading

Posted in AJAX, RJS templates, Ruby on Rails | 4 Comments

UJS; RJS versus POJS; Prototype Stack versus JQuery Stack

I am accustomed to using Unobtrusive JavaScript (UJS) in my apps. UJS dynamically adds event handlers to the DOM. These event handers implement behaviors via DOM manipulations and XMLHttpRequests (XHR’s). This approach is in contrast to the historical approach of … Continue reading

Posted in AJAX, RJS templates, Ruby on Rails, script.aculo.us | 4 Comments

Logging From Your Rails Models

update 2010/10/16: RAILS_DEFAULT_LOGGER is deprecated. I’m using ActiveRecord::Base.logger now as in: ActiveRecord::Base.logger.debug “value of x is #{x}” read on for the older solution… I just spent five minutes figuring out how to log from a model class in Rails (or … Continue reading

Posted in Ruby on Rails | 1 Comment

Ruby Symbol#to_proc — Don’t Forget It!

This is your code: puts %w{A B}.collect{|e| e.downcase}.inspect This is my cooler code: puts %w{A B}.collect( &:downcase).inspect This is how the Ruby Extension Project makes it work: class Symbol def to_proc proc { |obj, *args| obj.send(self, *args) } end end … Continue reading

Posted in Ruby on Rails | 1 Comment

Migration of Rails Development from PowerBook to MacBook Pro Marred by Annoying OS X File Sharing

Well I spent yesterday getting the new computer in shape and it’ll now run all my Rails projects. Overall the process has been surprisingly easy. The initial 45 minute FireWire brain transfer was extremely effective. After that, most productivity apps … Continue reading

Posted in OS X, Ruby on Rails | Leave a comment

:has_many Associations with Complex Joins (Kind of)

In this episode, your fearless Jedi delves within the dark tree of associations, with_scope, inner joins, duck typing and meta-programming all in an effort to keep DRY… In Joyomi I create an Omi when I lend you a book. I … Continue reading

Posted in Ruby on Rails, SQL | 1 Comment