1
2
3
@a_to_z = Service.find(:all,:select=>'SUBSTR(name,1,1) AS letter',:group=>'SUBSTR(name,1,1)',:order=>'name').collect { |d| d.letter }

...

Ruby A to Z only linking to lett...

by aubergene, January 13, 2008 21:10, 1 refactoring, tagged with Ruby on Rails, rails, alphabet, a to z

I wanted A to Z anchor link...

B78453e586d294bcd297f8ec44ec3458 Talk
1
2
3
4
<div class="pagination">
  <% letters = ['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','#'] -%>
  <% for letter in letters -%>
...

Ruby Creating an alphabetic for ...

by Adam Fortuna, December 16, 2007 08:27, 7 refactorings, tagged with alphabet, pagination

There's gotta be a much bet...

8571728785e5e350ddb58cd458533b12 Talk