initial dashboard interface, uploading and deleting of files with validations

This commit is contained in:
Kyle Drake 2013-06-03 17:46:53 -07:00
parent 7dfc2407b9
commit 380a1253cc
16 changed files with 526 additions and 4 deletions

8
models/site_file.rb Normal file
View file

@ -0,0 +1,8 @@
class SiteFile
attr_reader :filename, :ext
def initialize(filename)
@filename = filename
@ext = File.extname(@filename).sub(/^./, '')
end
end