Permalink
Browse files

Added class for forms

  • Loading branch information...
ashrafuzzaman committed Jun 15, 2012
1 parent c8d4c87 commit 5ee216709bb425d87291626b1588ffbdfaac6a60
@@ -1,4 +1,4 @@
<%%= form_for <%= resource_path %> do |f| %>
<%%= form_for <%= resource_path %>, html: {class: 'well'} do |f| %>
<%% if @<%= singular_table_name %>.errors.any? %>
<div id="error_explanation">
<h2><%%= pluralize(@<%= singular_table_name %>.errors.count, "error") %> prohibited this <%= singular_table_name %> from being saved:</h2>
@@ -1,4 +1,4 @@
<%%= form_for(@<%= singular_table_name %>, class: 'form-horizontal') do |f| %>
<%%= form_for(@<%= singular_table_name %>, html: {class: 'form-horizontal well'}) do |f| %>
<%% if @<%= singular_table_name %>.errors.any? %>
<div id="error_explanation">
<h2><%%= pluralize(@<%= singular_table_name %>.errors.count, "error") %> prohibited this <%= singular_table_name %> from being saved:</h2>

0 comments on commit 5ee2167

Please sign in to comment.