How to get number with precision in a controller in rails
===

See this [question][1].  An answer points out that you can include ActionView::Helpers::NumberHelper in order to get the number_with_precision method to work in your controllers.  This is also described as a bad practice.  I am working on exporting data to excel which is why I need it my controller (or some non-view file).  Is there a way to get comma delimiters and decimal places on my numbers generated in the controller without having to include the actionview numberhelper?


  [1]: http://stackoverflow.com/questions/4426315/using-number-with-precision-on-controller-in-rails3