2012-04-13 16 views
1

簡單的表單2.0.1 client_side_validations 3.1.4Rails的簡單的表單棄用警告

問題:

"error_class":"DEPRECATION WARNING: [SIMPLE_FORM] SimpleForm.error_class is deprecated and has no effect. (called from error_class at (eval):1)", 
"error_tag":"DEPRECATION WARNING: [SIMPLE_FORM] SimpleForm.error_tag is deprecated and has no effect. (called from error_tag at (eval):1)", 
"wrapper_error_class":"DEPRECATION WARNING: [SIMPLE_FORM] SimpleForm.wrapper_error_class is deprecated and has no effect. (called from wrapper_error_class at (eval):1)", 
"wrapper_tag":"DEPRECATION WARNING: [SIMPLE_FORM] SimpleForm.wrapper_tag is deprecated and has no effect. (called from wrapper_tag at (eval):1)" 

如何解決?

我的觀點:

<%= simple_form_for @book_item, :validate => true do |f| %> 
    <%= f.input :name %> 
    <%= f.input :description %> 
    <%= f.button :submit %> 
    <%= link_to t('.cancel', :default => t("helpers.links.cancel")), book_items_path, :class => 'btn' %> 
<% end %> 
+0

我的看法一樣, – MarioDu 2012-04-20 01:31:35

+0

嘗試HTTP:/ /stackoverflow.com/questions/12306811/rails-simple-form-and-client-side-validations-arent-working – chaitanya 2012-09-14 12:51:46

回答