head 1.6; access ; symbols ; locks ;comment @@; 1.6 date 2014.11.12.10.08.58; author p4; state Exp; branches ; next 1.4; 1.4 date 2014.11.11.12.43.56; author p4; state Exp; branches ; next 1.1; 1.1 date 2014.11.11.10.18.19; author p4; state Exp; branches ; next ; desc @@ 1.6 log @@ text @class Article < ActiveRecord::Base has_many :votes has_many :comments validates :title, presence: {message: "What's it all about"} validates :body, presence: true validates :author, presence: true validates_format_of :url, with: URI.regexp, unless: Proc.new {|url| url.blank? } end @ 1.4 log @@ text @d3 6 @ 1.1 log @@ text @d2 1 @