search for: a_order

Displaying 1 result from an estimated 1 matches for "a_order".

Did you mean: _order
2006 Apr 05
1
number_to_currency inside model
...a currency amount. I would like to do something like what''s below, but I get the following error message: undefined method `number_to_currency'' for #<Item:0x2479430> Here is the model. class Item < ActiveRecord::Base has_many :item_attributes, :order => ''a_order'' def regular_price number_to_currency(self) end end Not sure why it''s not finding the number_to_currency helper. Thanks! -- Posted via http://www.ruby-forum.com/.