Forum: Ruby on Rails restricting list output (newbie)

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
patrick (Guest)
on 2005-11-27 14:41
(Received via mailing list)
i have a table with 5 columns, but i only want to display 3 columns with
"list.rhtml".

what´s the best way to do this?
Gabriel B. (Guest)
on 2005-11-27 16:03
patrick wrote:
> i have a table with 5 columns, but i only want to display 3 columns with
> "list.rhtml".
>
> what's the best way to do this?

If the list.rhtml is the standard generated scaffolding, try outputting
the three columns directly (via item.colname) instead of using the for
loop.
This topic is locked and can not be replied to.