Agile Web Development

Build it. Launch it. Love it.

Plugins by Trevor Squires

  • Acts As Enumerated

    Treats ActiveRecord models as an enumerations.

  • resource_fu

    A collection of hacks that make nested and polymorphic resources less painful.

  • Values Of

    Adds a values_of class method to ActiveRecord::Base classes.

    Under the hood is simply does a construct_finder_sql, forcing :select to be
    whatever you pass in the first argument, using that to call
    connection.select_values and (optionally) type_cast()ing the resulting values.

    Aside from being prettier than passing a honking long SQL string to
    connection.select_values, the use of construct_finder_sql also ensures that
    any with_scope() in effect will be honored.