Ruby on Rails Friday, April 27, 2012

Do you follow naming conventions when writing i18n yaml files? If so, what are they?


For example, say you have a "Save changes" button that PUTs to users_controller.update. What would you call it?

    users.edit.update_button
    users.edit.updatebutton
    users.edit.button_update
    users.edit.save_changes
    etc...

What about flash messages? I have them organized as such now:

    controller.action.flash_success and controller.action.flash_error.

Any thoughts on naming conventions? Dashes? Underscores?

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/UMmgpRg6SVwJ.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment