ADD: Dateieinbindung in TinyMCE für Attachments

This commit is contained in:
HausdorffHimself
2013-08-24 04:07:33 +02:00
parent adbbce5fc8
commit 94614b1d5b
11 changed files with 79 additions and 18 deletions

View File

@@ -4,6 +4,7 @@
#
# id :integer not null, primary key
# name :string(255)
# datei :string(255)
# created_at :datetime not null
# updated_at :datetime not null
# thema_id :integer
@@ -11,9 +12,9 @@
class Attachment < ActiveRecord::Base
has_paper_trail
attr_accessible :name
attr_accessible :name, :datei
belongs_to :thema
mount_uploader :datei, BeispieldateiUploader
validates :thema, :presence => true
validates :name, :presence => true
end