Forum: Ruby on Rails grouped output

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.
E2489efc6ec10ec818b71965909ea109?d=identicon&s=25 Jin Lee (Guest)
on 2006-05-03 19:07
(Received via mailing list)
hello,

Suppose I have a table that looks like this:

center name email
Health Jon jon@test.com
Health Bob bob@test.com
Admin Jane jan@test.com
Admin Jill jill@test.com

I would like the output to look like this:

Health
Jon jon@test.com
Bob bob@test.com
Admin
Jane jan@test.com
Jill jill@test.com

when i using cold fusion, this was easy via a tag called cfoutput.
when i was using java, this was difficult, and i had to put some extra
conditionals in the table. is there an easy way to do this in rails?

thanks,
Jin
This topic is locked and can not be replied to.