Skip to content
This repository has been archived by the owner on Dec 3, 2018. It is now read-only.

eric1234/alphabar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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).