Skip to content

Instantly share code, notes, and snippets.

@bogdan
Created October 15, 2010 10:56
Show Gist options
  • Save bogdan/628010 to your computer and use it in GitHub Desktop.
Save bogdan/628010 to your computer and use it in GitHub Desktop.
class CustomPage < ActiveRecord::Base
validates_presence_of :title, :message => "заполните заголовок"
validates_presence_of :body, :message => "заполните содержание"
belongs_to :company
has_friendly_id :title, :use_slug => true
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment