Fix cfp create and error display

This commit is contained in:
Stella 2014-05-04 13:09:49 +03:00
parent 4e395a0d7a
commit e3d21de1cb
4 changed files with 23 additions and 13 deletions

View file

@ -2,7 +2,7 @@ class CallForPapers < ActiveRecord::Base
attr_accessible :start_date, :end_date, :hard_deadline, :description, :schedule_changes, :rating, :rating_desc, :schedule_public
belongs_to :conference
validates_presence_of :start_date, :end_date, :hard_deadline
validates_presence_of :start_date, :end_date, :hard_deadline, :description
validates :rating, :numericality => { :greater_than_or_equal_to => 0, :less_than_or_equal_to => 10 }
end