Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fix I18n support #184

Merged
merged 1 commit into from

2 participants

@ZenCocoon

Fix I18n support for index pages when no record is present.

@seyhunak
Owner

Thanks for the fixes. Merged.

@seyhunak seyhunak merged commit bab5e1c into from
@ZenCocoon

My pleasure, sorry for introducing this in the first place.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 6, 2012
  1. @ZenCocoon

    Fix I18n support

    ZenCocoon authored
This page is out of date. Refresh to see the latest.
View
2  lib/generators/bootstrap/themed/templates/index.html.erb
@@ -1,4 +1,4 @@
-<%%- model_class = @<%= plural_resource_name %>.first.class -%>
+<%%- model_class = <%= resource_name.classify %>.new.class -%>
<h1><%%=t '.title', :default => model_class.model_name.human.pluralize %></h1>
<table class="table table-striped">
<thead>
View
2  lib/generators/bootstrap/themed/templates/index.html.haml
@@ -1,4 +1,4 @@
-- model_class = @<%= plural_resource_name %>.first.class
+- model_class = <%= resource_name.classify %>.new.class
%h1=t '.title', :default => model_class.model_name.human.pluralize
%table.table.table-striped
%thead
View
2  lib/generators/bootstrap/themed/templates/index.html.slim
@@ -1,4 +1,4 @@
-- model_class = @<%= plural_resource_name %>.first.class
+- model_class = <%= resource_name.classify %>.new.class
h1=t '.title', :default => model_class.model_name.human.pluralize
table class="table table-striped"
thead
Something went wrong with that request. Please try again.