Sha256: 6f818ebf536e8719136ed029b6686ab535e7c2be8a8df1035ded68561d4f95fd

Contents?: true

Size: 190 Bytes

Versions: 5

Compression:

Stored size: 190 Bytes

Contents

class Page < ActiveRecord::Base
  validates_presence_of :title, :body
  validates_uniqueness_of :title_slug
  
  marks_up :body
  slugifies :title
  
  def to_param
    title_slug
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
hubbub-0.0.11 lib/app/models/page.rb
hubbub-0.0.10 lib/app/models/page.rb
hubbub-0.0.9 lib/app/models/page.rb
hubbub-0.0.8 lib/app/models/page.rb
hubbub-0.0.6 lib/app/models/page.rb