# Problems with readonly attributes

**URL:** <https://discuss.rubyonrails.org/t/problems-with-readonly-attributes/44447>\
**Category:** rubyonrails-talk\
**Created:** [July 21, 2009, 5:56pm UTC](https://discuss.rubyonrails.org/t/problems-with-readonly-attributes/44447 "2009-07-21T17:56:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marnen\_Laibow-Koser](https://avatars.discourse-cdn.com/v4/letter/m/a587f6/32.png) [@Marnen\_Laibow-Koser](https://discuss.rubyonrails.org/u/Marnen_Laibow-Koser)\
**Post date:** [July 21, 2009, 5:56pm UTC](https://discuss.rubyonrails.org/t/problems-with-readonly-attributes/44447/1 "2009-07-21T17:56:38Z")

</div>

No! That will fail -- and leave the field editable -- if JavaScript is turned off.

In general, there is almost never a good reason to use a read-only field. If the data is not editable, just put it on the page as plain text.

If there's some other issue, please explain in more detail.

Best,
