title: How to use ActionView::Helpers::NumberHelpers "number_with_delimeter" in script
body: <p>I'm writing a script for my rails application and I'm trying to format the numbers with delimeters so they're easier to read. But I have a problem in calling the number_with_delimeter method from ActionView::Helpers::NumberHelpers</p>
  
  <p>I tried</p>
  
  <pre><code>class MyClass &lt; ActiveRecord::base
      extend ActiveView::Helpers::NumberHelper
      def self.run
          puts "#{number_with_delimeter(1234567)}"
      end
  end
  MyClass.run
  </code></pre>
  
  <p>but it just doesn't work. I always get undefined method errors. I tried it with include instead of extend and some other variations. None of them worked. I don't know how to proceed.</p>
  
  <p>Is there any way to call this method in a script?</p>
  
  <p>*<em>Note: *</em> I call the script with <code>rails r script/my_script.rb</code></p>