Agile Web Development

Build it. Launch it. Love it.

alphabar

This paginator will help you search and display your results based on the first letter of a field.

This will allow you to divide up large result sets in a way that users can predict what will be on the page they click instead of just clicking through pages hoping to get the result they want.

Vitals

Home http://alphabar.rubyforge.org/
Repository svn://rubyforge.org/var/svn/alphabar/trunk
License Rails' (MIT)
Tags Tag_red alphabetical alphabetically pages paginate paginator
Rating (2 votes)
Owner Eric Anderson
Created 4 December 2007

Comments

  • Avatar
    Beirdo
    23 January 2008

    This didn't want to work for me. Maybe I'm missing something... Anyways, it complains that you are using a protected method (with_scope) in my model class when I use alpha_find or Alphabar::find. I'll look into this one again later when it is more mature, I guess.

  • 28 January 2008

    I changed line 76 of alphabar.rb from model.with_scope({:find => {:conditions => conditions}}) {model.find :all} to model.send(:with_scope, :find => {:conditions => conditions}) {model.find :all} and it worked like a charm.

Add a comment