# Display corresponding columns

**URL:** <https://www.ruby-forum.com/t/display-corresponding-columns/112612>\
**Category:** Rails\
**Created:** [August 21, 2007, 12:03pm UTC](https://www.ruby-forum.com/t/display-corresponding-columns/112612 "2007-08-21T12:03:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dhaval\_parikh33](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/bcef8e/32.png) [@dhaval\_parikh33](https://www.ruby-forum.com/u/dhaval_parikh33)\
**Post date:** [August 21, 2007, 12:03pm UTC](https://www.ruby-forum.com/t/display-corresponding-columns/112612/1 "2007-08-21T12:03:46Z")

</div>

Hello frnds

I want to display the details of the corresponding columns when one  
criteria matches with the details of one col.

eg:- say i have 3 cols. A,B and C and i put a condition to display the  
contents of the col which matches a particular value. Now say the result  
is from col B so I want to display the details of A and C of the same  
content that of B.

Seems a little confusing…let me know if ur not getting wat i said.

Thanks

Dhaval P.
