Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class EladIsAwesome < ActiveRecord::Base
- attr_accessoer :price_in_dollars
- def helpers
- ActionView.new.helpers
- end
- def price
- helpers.number_with_delimiter(price_in_dollars) # Just to fucking print 1,000 instead of 1000
- end
- end
Add Comment
Please, Sign In to add comment