Snippets has posted 5883 posts at DZone. View Full User Profile
class Song < ActiveRecord::Base
# Uses an integer of seconds to hold the length of the song
write_attribute("length", minutes * 60)
read_attribute("length") / 60
DZone's 170th Refcard is an essential reference to Camel, an open-source, lightweight, integration library. This Refcard is authored by...