GeoRSS aggregator and Layar augmented reality server
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 

12 行
293 B

  1. class Feed
  2. include MongoMapper::Document
  3. key :title, String
  4. key :link, String
  5. key :last_fetched, Time, :default => nil
  6. timestamps!
  7. validates :title, :link, :presence => true
  8. validates_format_of :link, :with => URI::regexp(%w(http https)), :message => "must be a valid URL"
  9. end