lib/generators/bootstrap/themed/templates/_form.html.erb in twitter-bootstrap-rails-2.0.1.0 vs lib/generators/bootstrap/themed/templates/_form.html.erb in twitter-bootstrap-rails-2.0.2
- old
+ new
@@ -1,13 +1,12 @@
<% columns.each do |column| %>
<div class="clearfix">
- <%%= f.label :<%= column.name %>, t("activerecord.attributes.<%= model_name.underscore %>.<%= column.name %>", :default => "<%= column.name.humanize %>"), :class => :label %>
+ <%%= f.label :<%= column.name %>, t("activerecord.attributes.<%= model_name.underscore %>.<%= column.name %>", :default => "<%= column.name.humanize %>"), :class => :label %>
<div class="input">
<%%= f.<%= column.field_type %> :<%= column.name %>, :class => '<%= column.field_type %>' %>
</div>
</div>
<%- end -%>
-
<div class="form-actions">
- <%%= button nil, :class => "btn btn-primary" %>
- <%%= link_to "Cancel", <%= controller_routing_path %>_path %>, :class => 'btn' %>
+ <button class="btn primary" type="submit">Save</button> or
+ <%%= link_to "Cancel", <%= controller_routing_path %>_path %>
</div>