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:
parent
dccf6da66b
commit
de7c61b072
3 changed files with 3 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
<h1>Editing <%= singular_table_name %></h1>
|
||||
<h1>Editing <%= singular_table_name.titleize %></h1>
|
||||
|
||||
<%%= render 'form' %>
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<h1>Listing <%= plural_table_name %></h1>
|
||||
<h1>Listing <%= plural_table_name.titleize %></h1>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<h1>New <%= singular_table_name %></h1>
|
||||
<h1>New <%= singular_table_name.titleize %></h1>
|
||||
|
||||
<%%= render 'form' %>
|
||||
|
||||
|
|
Loading…
Reference in a new issue