August 25, 2009
Been a long time. shouldn’t of left ya without a dope plugin to step to. meh. But for reals, I’ve been working way too much. Here’s a tasty sampler of some new and revived github projects: ActiveRecord Dumper Asset Tag Extensions Ruby Prof Request Filters Google Base4r extensions ActiveRecord Dumper script/plugin install http://github.com/blythedunham/ar_dumper Dumper. I [...]
May 7, 2009
This presentation includes some good tips on how to integrate with sms, especially for Rails applications. The SMS on Rails engine plugin demo steps are included.
April 24, 2009
Join the club: Rails Devs for Data Integrity
Some ways to handle unique and foreign key violations database exceptions gracefully in rails.
April 22, 2009
Today I present Taking Active Record To the Next Level at the MySQL Conference and Expo! There is a lot of excitement in the Rails world due to Rails 3 merge with Merb which will provide framework agnosticism for the people. However, good, old, (sometimes not playing nice with MySQL) ActiveRecord is still the defacto [...]
April 7, 2009
By default Rails uses int(11) as the standard for primary key (id) columns. MySQL prefers unsigned numeric types. Plugin mysql_migration_optimize supports unsigned integers, column display width and complete control over the primary key. Also explained is how to use different numeric types such as tinyint and bigint with Rails Migrations.
March 31, 2009
Static Record Cache permanently caches active record data for classes which contain small amounts of static data.
March 18, 2009
One of the many database features hated by Rails is enumerated columns. Even if you add them to your migration by dirtying your hands with SQL yourself, then the schemadumper interprets them as zero length strings as mentioned in Rob Sanheim’s blog. Funtime! I however like enumerated columns because they save space and are pretty, [...]
February 5, 2009
Add folders to your Amazon S3 buckets
January 31, 2009
Changing column data to use MySQL functions instead of the actual column data for Ruby on Rails ActiveRecord is simple. To allow ActiveRecord to retrieve the data of the function, alias it to the column name. Event.find :all, :select => ‘substring(name, 1, 10) as name’ This produces the follow SQL query using MySQL SUBSTRING function: [...]
January 27, 2009
Do to some Obama day drama, I wrote a little plugin that allows you to conditionally page or action cache at runtime. This means that you might page cache depending on the user type, or the date or how you feel when you wake up. script/plugin install http://arperftoolkit.rubyforge.org/svn/trunk/conditional_page_cache At the top of the controller, indicate [...]