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.
Jin L. (Guest)
on 2006-05-03 21:07
(Received via mailing list)
hello,

Suppose I have a table that looks like this:

center name email
Health Jon removed_email_address@domain.invalid
Health Bob removed_email_address@domain.invalid
Admin Jane removed_email_address@domain.invalid
Admin Jill removed_email_address@domain.invalid

I would like the output to look like this:

Health
Jon removed_email_address@domain.invalid
Bob removed_email_address@domain.invalid
Admin
Jane removed_email_address@domain.invalid
Jill removed_email_address@domain.invalid

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.