Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

titleizing the New Link #17109

Merged
merged 1 commit into from
Jul 21, 2015
Merged

titleizing the New Link #17109

merged 1 commit into from
Jul 21, 2015

Conversation

th1agoalmeida
Copy link
Contributor

No description provided.

@@ -28,4 +28,4 @@

<br>

<%%= link_to 'New <%= human_name %>', new_<%= singular_table_name %>_path %>
<%%= link_to 'New <%= human_name.titleize %>', new_<%= singular_table_name %>_path %>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

considering we don't use human_name anywhere else we should change it to singular_table_name.titleize.

@senny senny added the railties label Nov 5, 2014
@rafaelfranca
Copy link
Member

I believe we already had this same pull request and we rejected because it made the name looks more artificial, not for humans.

Thank you for the pull request.

@rafaelfranca rafaelfranca reopened this Nov 5, 2014
@rafaelfranca
Copy link
Member

Just saw we are already using titleize in other files. So it is better to keep it consistent

@th1agoalmeida
Copy link
Contributor Author

@rafaelfranca shall we keep it consistent?

@rafaelfranca
Copy link
Member

@thejamespinto yes, please change for what @senny suggested and I'll merge.

@th1agoalmeida
Copy link
Contributor Author

@rafaelfranca there we go 👍

rafaelfranca added a commit that referenced this pull request Jul 21, 2015
@rafaelfranca rafaelfranca merged commit 94e8b3a into rails:master Jul 21, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants