Posts tagged with: "ActiveRecord"

Fun with Ruby: Get All Nancy Drew on Chrome

By Jerry Cheung February 2, 2011 in ruby, ActiveRecord, search, chrome

I use the Chrome history tab when I forget about something I've looked up in the past. I initially thought that the data would be stored in a CSV or XML file and thought I could do some string munging for kicks and giggles. To my delight, when I looked in the "Application Support" directory for Chrome, I found several data-rich sqlite databases ready for mining. With a few Ruby tricks, I found some cool data. All the code this article covers is available on the chrome_spy project.

Quick Tip: Readable Conditional Validations in Rails

By Michael Bleigh November 3, 2009 in rails, ruby, ActiveRecord, quick tip, validations, with_options

Temporarily disable ActiveRecord callbacks

By Brent Collier March 12, 2009 in ActiveRecord, callbacks

Easily Search on ActiveRecord Attributes

By Raymond Law March 9, 2009 in rails, ruby, plugins, ActiveRecord, rubyonrails, search

From Param: How URL-Based Fetching Ought to Be

By Michael Bleigh April 28, 2008 in rails, announcements, plugins, ActiveRecord, from_param

From Param: How URL-Based Fetching Ought to Be

By Michael Bleigh April 28, 2008 in rails, announcements, plugins, ActiveRecord, from_param

From Param: How URL-Based Fetching Ought to Be

By Michael Bleigh April 28, 2008 in rails, announcements, plugins, ActiveRecord, from_param

Codebite: Generic "New Today" for Rails Records

By Michael Bleigh February 25, 2008 in rails, ActiveRecord, codebites, new records

Codebite: Generic "New Today" for Rails Records

By Michael Bleigh February 25, 2008 in rails, ActiveRecord, codebites, new records

ActiveRecord::Base.create_or_update on Steroids

By Michael Bleigh February 19, 2008 in rails, ActiveRecord, db-populate, metaprogramming, seed data

ActiveRecord::Base.create_or_update on Steroids

By Michael Bleigh February 19, 2008 in rails, ActiveRecord, db-populate, metaprogramming, seed data