Class: Page

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/page.rb

Instance Method Summary collapse

Instance Method Details

#to_paramObject


5
6
7
# File 'app/models/page.rb', line 5

def to_param
  id.to_s << "-" << (title ? title.parameterize : '')
end