Kad Kerforn
2006-Aug-09 13:05 UTC
[Rails] h() assistant or sanitize() with form_remote_for
How can I html-escape an input fieldin my form ? I cannot use them directly h(f.text_field ''name'', :size => 30 %) or sanitize(f.text_field ''name'', :size => 30 %) are incorrect.... <% form_remote_for :property, @property, :url => {:action => @action, :id => @property }, :loading => ''Form.disable("property-form")'', :complete => ''Form.enable("property-form")'', :html => { :id => ''property-form'' } do |f| %> ..... <div> <label class="label" for="property_name">Property Name</label><br /> <%= f.text_field ''name'', :size => 30 %><br /> </div> .... thanks for any trick Kad -- Posted via http://www.ruby-forum.com/.