The easy way to resolve this type of problem is through: http//
api.rubyonrails.org
The Methods panel has, for your example, number_to_currency
(ActionView::Helpers::NumberHelper)

On Sep 24, 3:17 pm, Dudebot <craign...@gmail.com> wrote:
> Hi Gurus, I have a class, specified in models cart.rb, which doesn't
> inherit from anything--it's just a container
>
> class Cart
> ...
>
> I just discovered I can't call number_to_currency in that class.  Any
> idea how to "include" it in my code?  I tried
> ActionView.number_to_currency without luck.  I could kill a few lines
> of non-DRY regexp code in cart.rb if I could just use
> number_to_currency.
>
> Many TIA,
> Craig
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to