Conflicts:
	app/controllers/neuigkeiten_controller.rb
	config/routes.rb
This commit is contained in:
Thomas Blazek
2014-08-27 15:31:52 +02:00
46 changed files with 1053 additions and 2 deletions

11
app/models/fetmeeting.rb Normal file
View File

@@ -0,0 +1,11 @@
class Fetmeeting < ActiveRecord::Base
attr_accessible :tnlist, :typ, :calentry_attributes
has_many :fetmeetingtops
validates :typ, presence: true
validates :calentry, presence: true
has_one :calentry , as: :object
accepts_nested_attributes_for :calentry
def public
true
end
end

View File

@@ -0,0 +1,7 @@
class Fetmeetingtop < ActiveRecord::Base
attr_accessible :discussion, :ersteller, :fetmeeting_id, :text, :title
belongs_to :fetmeeting
validates :fetmeeting, presence: true
validates :title, presence: true , length:{minimum: 4}
validates :ersteller, presence: true
end