Tag Archives: rails

Dailed-in Rails script/console with pretty printing and history

Edit (as root) your /etc/irbrc: # Some default enhancements/settings for IRB, based on # http://wiki.rubygarden.org/Ruby/page/show/Irb/TipsAndTricks   unless defined? ETC_IRBRC_LOADED   # Require RubyGems by default. require ‘rubygems’   begin require "ap" IRB::Irb.class_eval do def output_value ap @context.last_value end end rescue … Continue reading

Posted in Technical HOWTOs | Tagged | Leave a comment

Installing Phusion Passenger on Ruby 1.9.1, Nginx, & Ubuntu 10.04

Getting ruby 1.9.1 and nginx and passenger and ubuntu to all play nicely is fairly straightforward, but it’s not just “apt-get” and “gem install” lovin’. Making ruby 1.9.1 the default ruby is OK. Follow these steps:

Posted in Technical HOWTOs | Tagged , , , , | Leave a comment

Quick MacPorts Installation of Ruby on Rails

I finally got to walking through a great gentle introductory ALA article on Ruby on Rails. I wanted to run rails Demo to build my first project, but I got nastiness: $ rails -v /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:379:in `report_activate_error’: RubyGem version error: rake(0.7.3 … Continue reading

Posted in Technical HOWTOs | Tagged , | Leave a comment