# Tables and Ids how to Hide

**URL:** <https://www.ruby-forum.com/t/tables-and-ids-how-to-hide/88611>\
**Category:** Rails\
**Created:** [March 13, 2007, 12:34am UTC](https://www.ruby-forum.com/t/tables-and-ids-how-to-hide/88611 "2007-03-13T00:34:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rickf](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/9e8a1a/32.png) [@rickf](https://www.ruby-forum.com/u/rickf)\
**Post date:** [March 13, 2007, 12:34am UTC](https://www.ruby-forum.com/t/tables-and-ids-how-to-hide/88611/1 "2007-03-13T00:34:17Z")

</div>

Hi All,

In most of the rails code I have seen the rows of a specific table are  
listed with each row typically having delete and edit links with the ID  
associated for further action.

I would like to hide the id from the user. Typically users are not  
interested in the ID and taking up screen real estate for an ID is not a  
good option for me. Also having a seperate delete link doesn’t allow for  
the deletion of multiple user selected records.

My plan is to dynamically write hidden fields to a div based on row  
selections by the user. The params would be processed by the controller  
code in include the hidden fields.

Does this approach seem to make sense? Are there better approaches?

Seems to me others would be interested in this type of functionality.

Help is appreciated,  
Rick

---

<div class="post-metadata">

**Author:** ![rickf](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/9e8a1a/32.png) [@rickf](https://www.ruby-forum.com/u/rickf)\
**Post date:** [March 13, 2007, 12:38am UTC](https://www.ruby-forum.com/t/tables-and-ids-how-to-hide/88611/2 "2007-03-13T00:38:39Z")

</div>

Yes, use hidden fields. eg. \<%= hidden\_field “person”, “id” %\>

On Mar 12, 3:34 pm, Rick F. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
