Forum: Ruby on Rails howto same order list fields in view and on paginate

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
7668603f79c76f21ae9be4e7069c01e0?d=identicon&s=25 fellons (Guest)
on 2007-06-27 00:56
(Received via mailing list)
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
This topic is locked and can not be replied to.