thats because you are using %[letter]%
% is a wildcard and so you are asking the db to return any row where
[letter] appears in the name column.
if you want any last name that starts with [letter], use '[letter]%'
Keep up to date with Rails on Twitter and This Week in Rails
Policies: Conduct, License, Maintenance, Security, Trademarks