aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorThiago Pinto <tapgyn@gmail.com>2015-07-20 22:16:38 -0300
committerThiago Pinto <tapgyn@gmail.com>2015-07-20 22:20:39 -0300
commit1acf0f0ebdf9311aee81ad74576999fad37280fc (patch)
tree6a7cba254f6212e5660a38fddf1fde37e1f674db /railties
parenta2bb266a7f546edfba8e82e75f1f01bb359f7bbd (diff)
downloadrails-1acf0f0ebdf9311aee81ad74576999fad37280fc.tar.gz
rails-1acf0f0ebdf9311aee81ad74576999fad37280fc.tar.bz2
rails-1acf0f0ebdf9311aee81ad74576999fad37280fc.zip
titleizing the New Link
Diffstat (limited to 'railties')
-rw-r--r--railties/lib/rails/generators/erb/scaffold/templates/index.html.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/erb/scaffold/templates/index.html.erb b/railties/lib/rails/generators/erb/scaffold/templates/index.html.erb
index c3b8ef1181..5f4904fee1 100644
--- a/railties/lib/rails/generators/erb/scaffold/templates/index.html.erb
+++ b/railties/lib/rails/generators/erb/scaffold/templates/index.html.erb
@@ -28,4 +28,4 @@
<br>
-<%%= link_to 'New <%= human_name %>', new_<%= singular_table_name %>_path %>
+<%%= link_to 'New <%= singular_table_name.titleize %>', new_<%= singular_table_name %>_path %>