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:

  def pluralize(*args)
    ActionController::Base.helpers.pluralize *args

Post a Comment

Your email is never shared. Required fields are marked *