Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Ruby
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
.gitignore
Gemfile
Gemfile.lock
MIT-LICENSE
README.rdoc
Rakefile
alphabar.gemspec

README.rdoc

USAGE

# In your controller
@users, @paginator = User.alpha_scope :last_name, params[:ltr]

# In your view
<%= alphabar @paginator %>
<ul>
  <% for user in @users %>
    <li><%= user %></li>
  <% end %>
</ul>

See rdoc for more details.

FAIR WARNING

This plugin/gem was mostly written in the early 1.0 days. Upgraded to 1.2 as some point. Just recently updated to 2.3.8 then 3.x although in the process the old testing code was too crufty to upgrade so I just dropped it completely.

So it has some experience but the upgrade cycles might have introduced some bugs. Without good testing we don't know.

Tasks for a future project:

  • Implement testing again

CREDIT

This code was developed by Eric Anderson (pixelwareinc.com) in large part while working on projects under CorData (cordata.com).

Something went wrong with that request. Please try again.