Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove formtastic deprecation warnings

  • Loading branch information...
commit e80706697782dd0134b2fb5e2e20e3eb24da9b0b 1 parent 8d696f2
@xaviershay xaviershay authored
View
4 app/views/admin/comments/show.html.erb
@@ -1,13 +1,13 @@
<h1>Editing comment by <%= @comment.author %></h1>
<%= semantic_form_for([:admin, @comment]) do |form| -%>
- <%= form.input_field_set do -%>
+ <%= form.inputs do -%>
<%= form.input :author %>
<%= form.input :author_url, :required => false %>
<%= form.input :author_email, :required => false %>
<%= form.input :body, :hint => "<a href='http://lesstile.rubyforge.org'>Lesstile enabled</a>.".html_safe %>
<% end %>
- <%= form.button_field_set do -%>
+ <%= form.buttons do -%>
<%= form.commit_button("Save") %>
<% end -%>
<% end -%>
View
2  app/views/admin/pages/_form.html.erb
@@ -2,7 +2,7 @@
<%= javascript_include_tag 'admin/edit-preview' %>
<% end -%>
-<%= form.input_field_set do -%>
+<%= form.inputs do -%>
<%= form.input :title %>
<%= form.input :slug, :hint => "Leave blank for an auto-generated slug based on the title." %>
<%= form.input :body, :hint => "<a href='http://textile.thresholdstate.com/'>Textile enabled</a>. Use Ctrl+E to switch between preview and edit mode.".html_safe %>
View
2  app/views/admin/pages/new.html.erb
@@ -2,7 +2,7 @@
<%= semantic_form_for([:admin, @page]) do |form| -%>
<%= render :partial => 'form', :locals => {:form => form} %>
- <%= form.button_field_set do -%>
+ <%= form.buttons do -%>
<%= form.commit_button("Save") -%>
<% end -%>
<% end -%>
View
2  app/views/admin/pages/show.html.erb
@@ -2,7 +2,7 @@
<%= semantic_form_for([:admin, @page]) do |form| -%>
<%= render :partial => 'form', :locals => {:form => form} %>
- <%= form.button_field_set do -%>
+ <%= form.buttons do -%>
<%= form.commit_button("Save") -%>
<% end -%>
<% end -%>
View
4 app/views/admin/posts/_form.html.erb
@@ -2,12 +2,12 @@
<%= javascript_include_tag 'admin/edit-preview' %>
<% end -%>
-<%= form.input_field_set do -%>
+<%= form.inputs do -%>
<%= form.input :title -%>
<%= form.input :body, :hint => "<a href='http://textile.thresholdstate.com/'>Textile enabled</a>. Use Ctrl+E to switch between preview and edit mode.".html_safe -%>
<%= form.input :tag_list, :as => 'string', :required => false, :hint => 'Comma separated: ruby, rails&hellip;'.html_safe -%>
<% end -%>
-<%= form.input_field_set do -%>
+<%= form.inputs do -%>
<%= form.input :published_at_natural, :label => 'Published at', :as => 'string', :hint => 'Example: now, yesterday, 1 hour from now, '.html_safe + link_to("more&hellip;".html_safe, "http://chronic.rubyforge.org/") -%>
<%= form.input :slug, :hint => "Leave blank for an auto-generated slug based on the title." -%>
<%= form.input :minor_edit, :as => 'boolean', :hint => 'Minor edits will not show up as refreshed in feed readers. Use this to fix spelling mistakes and the like.' unless @post.new_record? -%>
View
2  app/views/admin/posts/new.html.erb
@@ -2,7 +2,7 @@
<%= semantic_form_for([:admin, @post]) do |form| -%>
<%= render :partial => 'form', :locals => {:form => form} -%>
- <%= form.button_field_set do -%>
+ <%= form.buttons do -%>
<%= form.commit_button("Save") -%>
<% end -%>
<% end -%>
View
2  app/views/admin/posts/show.html.erb
@@ -2,7 +2,7 @@
<%= semantic_form_for([:admin, @post]) do |form| -%>
<%= render :partial => 'form', :locals => {:form => form} %>
- <%= form.button_field_set do -%>
+ <%= form.buttons do -%>
<%= form.commit_button("Save") -%>
<% end -%>
<% end -%>
View
4 app/views/admin/tags/edit.html.erb
@@ -1,10 +1,10 @@
<h1>Editing tag - <%= link_to(@tag.name, posts_path(:tag => @tag)) %></h1>
<%= semantic_form_for([:admin, @tag]) do |form| -%>
- <%= form.input_field_set do -%>
+ <%= form.inputs do -%>
<%= form.input :name %>
<% end -%>
- <%= form.button_field_set do -%>
+ <%= form.buttons do -%>
<%= form.commit_button("save") -%>
<% end -%>
<% end -%>
Please sign in to comment.
Something went wrong with that request. Please try again.