howto same order list fields in view and on paginate

Hi to all.

I have a this problem:
on my controller.rb I have set attribute 'select' for paginate method;
in my view I don't understand how to estract field name and value
with same order set.
I'have try with attribute_names or attributes, but
with this method, list of fields are ordered in another way.
paginate :select 'id,name,city'
and, in view,
for obj in <activerecord>.attribute_names
name, id, city

I must use different methods ?
There is some setting to force ?

sorry for my english
and thanks in advantage

bye by fellons