Here's how I implemented something similar.

On the index page of my contacts, I list them alphabetically by
default, paginated with 10 per page.  At the top of this index page, I
spit out the alphabet with each letter having it's own link.  Click
any letter and I return all the contacts whose last name starts with
that letter, paginated 10 per page of that letter.  I also add some
css styling to the letter they clicked to show which letter they're
on.  Hope that helps.

http://gist.github.com/175741
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to