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| %>

Property Name
<%= f.text_field 'name', :size => 30 %>
....

thanks for any trick

Kad

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