- I wrote this packageDec 19, 2008Acts As EnumeratedPermalinkAllows you to treat instances of your ActiveRecord models as though they were an enumeration of values.Show Details
Licence
This package is licenced under the MIT licence.
Installation
Installation Instructions:
script/plugin install http://svn.protocool.com/public/plugins/enumerations_mixin
Searchlogic‘s goal is to keep your application free of searching clutter. It‘s is an ActiveRecord extension that allows you to perform simple and complex searches with a hash:
@search = User.new_search(params[:search]) @users = @search.all
These are just the basics of Searchlogic, it can do a lot more, including pagination, ordering data, etc.
Licence
This package is licenced under the MIT licence.
Installation
Installation Instructions:
sudo gem install searchlogic For rails, as a gem (recommended) # config/environment.rb config.gem "searchlogic" Or as a plugin (for older versions of rails) script/plugin install git://github.com/binarylogic/searchlogic.git
Pagination is just limiting the number of records displayed. Why should you let it get in your way while developing, then? This plugin makes magic happen. Did you ever want to be able to do just this on a model:
Post.paginate :page => 1, :order => 'created_at DESC'
…and then render the page links with a single view helper? Well, now you can.
Licence
This package is licenced under the MIT licence.
