first release

This commit is contained in:
jomo
2013-05-31 22:26:22 +02:00
parent 149232ec0c
commit 8921d108e2
70 changed files with 1080 additions and 85 deletions

6
app/models/comment.rb Normal file
View File

@@ -0,0 +1,6 @@
class Comment < ActiveRecord::Base
attr_accessible :text, :user_id, :blogpost_id
validates_presence_of :text, :user_id, :blogpost_id
belongs_to :blogpost
belongs_to :user
end