Forum: Ruby on Rails Tables and Ids how to Hide

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
903de3fe51f14392609e28e82e1b1c6c?d=identicon&s=25 Rick Fiorentino (rickf)
on 2007-03-13 00:34
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,
1ffec6d10bec4303b1cc4d6930169ea4?d=identicon&s=25 Codemonk (Guest)
on 2007-03-13 00:38
(Received via mailing list)
Yes, use hidden fields. eg. <%= hidden_field "person", "id" %>

On Mar 12, 3:34 pm, Rick Fiorentino <>
This topic is locked and can not be replied to.