1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Titling the model name in views generated by scaffold.

eg. rails g scaffold UserProfile will have in index.html.erb "Listing User Profiles"
rather than Listing user_profiles.
This commit is contained in:
Amit Suryavanshi 2014-06-18 11:32:02 +05:30
parent dccf6da66b
commit de7c61b072
3 changed files with 3 additions and 3 deletions

View file

@ -1,4 +1,4 @@
<h1>Editing <%= singular_table_name %></h1>
<h1>Editing <%= singular_table_name.titleize %></h1>
<%%= render 'form' %>

View file

@ -1,4 +1,4 @@
<h1>Listing <%= plural_table_name %></h1>
<h1>Listing <%= plural_table_name.titleize %></h1>
<table>
<thead>

View file

@ -1,4 +1,4 @@
<h1>New <%= singular_table_name %></h1>
<h1>New <%= singular_table_name.titleize %></h1>
<%%= render 'form' %>