Using the pluralize method in a rake task
Posted
by Scott S.
on Stack Overflow
See other posts from Stack Overflow
or by Scott S.
Published on 2009-12-30T23:45:28Z
Indexed on
2010/06/16
12:12 UTC
Read the original article
Hit count: 211
I know this seems silly, but I would like to call some of Rails' Text Helpers in a rake task I am setting up. (Thinks like the pluralize and cycle method: http://api.rubyonrails.org/classes/ActionView/Helpers/TextHelper.html)
How would you go about making these available in a rake task, or is it not easily possible?
© Stack Overflow or respective owner