using pluralize in a radiant custom page
I’m working on extending the custom tags in the radiant-search-extension. Radiant tags are really a lot like Rails views, but they don’t have access to the view helpers. After learning how to call helpers outside of views, I simply added this method to my custom page:
1 2 3 4 |
def pluralize(*args)
ActionController::Base.helpers.pluralize *args
end |