Rails, Firefox, Anime, Mac
In: Ruby| Ruby on Rails
31 Mar 2007After overriding rescue_action_in_public in the ApplicationController to deal with ActiveRecord::RecordNotFound exceptions (a very common exception to rescue in the canonical ’show’ actions of your controllers), I decided to test it. I’ve been getting used to BDD with RSpec (and the Spec::Rails plugin), so I stumbled a bit when writing the spec.
I finally settled on this:
class [...]
In: Ruby| Ruby on Rails
27 Mar 2007I’ve been writing a database importer plugin for a Rails application that needs to data on some “legacy” production databases (well, not really legacy, but the schema differs from ActiveRecord conventions) with the intention of scheduling a cron job to run the imports. Why not connect the Rails app to the legacy databases? Hmm, let’s [...]
In: Ruby| Ruby on Rails
26 Mar 2007Ugh, I wish I found this earlier: Tab Completion in IRb. I only went googling for this after I realized I have been tabbing to get auto-completion on script/console for a bit but it never sunk in that tab-completion wasn’t ever working. Useful stuff, go set it up if you haven’t already.