If it is going to be read-only, why do you need to display it in a text_area instead of directly on the page?
andrew wrote: > There is what I'm doing: I want to display a series of text_area > fields (read only) of which each has a checkbox. > > Is this the best way to do it? > > <% form_for (@section), :url =>{:action => "save_comments"} do |f| %> > <% f.fields_for :comments do |a|%> > <li> > <%= a.text_area :text, :read_only => 'true' %> <br> > <%= a.check_box :approval_boolean %> <br> > <hr> > </li> > <% end %> > <% end %> > > Is there any other way to display the field "text" other than above? > > Thanks! -- 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.