Module: Htmlful::Url::InstanceMethods

Defined in:
lib/htmlful/url.rb

Instance Method Summary collapse

Instance Method Details

#to_paramObject



12
13
14
15
# File 'lib/htmlful/url.rb', line 12

def to_param
  url_str = self.class.url_fields.map {|f| send(f).to_s.parameterize }.join("-")
  "#{id}-#{url_str}"
end