0
我想逃避這種形式的輸入,以便當它輸入數據庫字符時,''*不會影響更新。我如何編碼人物來達到上述目標。轉義字符導軌
<% form_for @post, :url => {:action => :createInnovation } do |form| %>
<fieldset>
<p> Title: <br/><%= form.text_field :title, :html => {:class => "text ui-widget_content ui-corner-all" } %> </p>
<p> Description: <br/> <%= form.text_area :body, :html => {:class => "text ui-widget_content ui-corner-all" } %> </p>
</fieldset>
<%end%>
你可以發佈你的createInnovation行動的代碼嗎? – 2009-07-24 19:48:32