Frederick Cheung wrote: > On Apr 26, 6:13�pm, ES <emsto...@gmail.com> wrote: >> Does anyone know if it is possible to create an uneditable text input >> field using the form tag helpers? > > You should be able to set the disabled or readonly attribute (these > aren't the same - make sure you use the one most appropriate for your > usage) >
But this is usually poor UI design. In general, it's better to either leave the control enabled or use static text. And of course, don't rely on a disabled control to prevent users from changing things. A malicious user could send a specially crafted request to your application that would edit a "disabled" parameter... > Fred Best, -- Marnen Laibow-Koser http://www.marnen.org mar...@marnen.org -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.