How can I make a textbox uneditable?

I want to make this textbox indeitable but im not sure how to use ruby
to do this can anyone help?

my textbox:

<%= f.text_field :item_name %>

<%= f.text_field :item_name, :disabled => true %>

Also, you can use a

that’s styled like a textbox

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs