Commit f48647a4 authored by Milan's avatar Milan

show add title to blogpost id

parent fb3d73fc
......@@ -6,6 +6,7 @@
config/deploy_config.yml
config/schedule.rb
config/database.yml
.bundle
vendor/bundle/
vendor/cache/
......
class Blogpost < ApplicationRecord
def to_param
"#{self.id}-#{self.title}".parameterize
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment