Created
March 15, 2018 16:11
-
-
Save bqst/9cc523aafd2596417b7d7e8c628dc2bf to your computer and use it in GitHub Desktop.
app/models/post.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# app/models/post.rb | |
class Post < ApplicationRecord | |
# friendly url | |
extend FriendlyId | |
friendly_id :title, use: :slugged | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment