RubyGems Navigation menu

searchable_record 0.0.2

SearchableRecord is a small Ruby on Rails plugin that makes the parsing of query parameters from URLs easy for resources, allowing the requester to control the items (records) shown in the resource's representation. The implementation is a helper module (a mixin) for ActiveRecord models. It is used by including SearchableRecord module in a model. The mixin provides a class method, <tt>SearchableRecord#find_queried</tt>, to the class that includes it. The method is a front-end to ActiveRecord::Base#find: it parses query parameters against the given rules and calls <tt>find</tt> accordingly, returning the results of <tt>find</tt>.

Gemfile:
=

install:
=

Versions:

  1. 0.0.6 September 24, 2009 (12 KB)
  2. 0.0.5 February 04, 2009* (12.5 KB)
  3. 0.0.4 January 14, 2009* (12.5 KB)
  4. 0.0.3 January 13, 2009* (12.5 KB)
  5. 0.0.2 August 26, 2008* (11.5 KB)

Runtime Dependencies (1):

Development Dependencies (1):

hoe >= 1.7.0

Owners:

Authors:

  • Tuomas Kareinen

SHA 256 checksum:

=

Total downloads 18,913

For this version 3,471

Version Released:

Licenses:

N/A

Required Ruby Version: None

Links: