According to the 
documentation<http://api.rubyonrails.org/classes/ActiveSupport/Inflector.html#method-i-humanize>
 of 
ActiveSupport::Inflector:

   *humanize*(lower_case_and_underscored_word) 
   Capitalizes the first word and turns underscores into spaces and strips 
a trailing “_id”, if any.
*   Example: humanize("employee_salary") # => "Employee salary"*

I would like to submit a pull request for *humanize *to accept a second 
optional parameter that would allow the string to be *humanized without 
being capitalized*.

   *humanize*(lower_case_and_underscored_word, capitalize = true) 
   Turns underscores into spaces and strips a trailing “_id”, if 
any". Capitalizes the first word if capitalize=true
*   Example: humanize("employee_salary", false) # => "employee salary"*
*
*
I have stumbled into cases where I want to "humanize" a word without 
capitalizing it, and I've seen others <http://pastebin.com/U3JSQ8AC>occurring 
in the same problem.
What is your opinion about this? Thanks

*
*


-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/rubyonrails-core.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to