This commit is contained in:
Thomas Blazek
2013-08-19 20:58:39 +02:00
10 changed files with 60 additions and 27 deletions

View File

@@ -1,3 +1,6 @@
class Foto < ActiveRecord::Base
attr_accessible :datei, :desc, :gallery_id, :title
belongs_to :gallery
mount_uploader :datei, FotoUploader
end

View File

@@ -1,3 +1,4 @@
class Gallery < ActiveRecord::Base
attr_accessible :datum, :desc, :name
has_many :fotos
end