Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Podcast < ActiveRecord::Base
- # Validations
- #
- validates_presence_of :title, :file
- # Macros
- #
- upload_column :file,
- :extensions => ["mp3", "ogg"],
- :root_dir => File.join(RAILS_ROOT, "public", "system"),
- :web_root => "/system"
- end
Add Comment
Please, Sign In to add comment