Fix cfp create and error display
This commit is contained in:
parent
4e395a0d7a
commit
e3d21de1cb
4 changed files with 23 additions and 13 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue