From 1acf0f0ebdf9311aee81ad74576999fad37280fc Mon Sep 17 00:00:00 2001 From: Thiago Pinto Date: Mon, 20 Jul 2015 22:16:38 -0300 Subject: titleizing the New Link --- railties/lib/rails/generators/erb/scaffold/templates/index.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@
-<%%= link_to 'New <%= human_name %>', new_<%= singular_table_name %>_path %> +<%%= link_to 'New <%= singular_table_name.titleize %>', new_<%= singular_table_name %>_path %> -- cgit v1.2.3