Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Illuna-Minecraft
illuna-minecraft.tk
Commits
f48647a4
Commit
f48647a4
authored
Aug 30, 2016
by
Milan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
show add title to blogpost id
parent
fb3d73fc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
.gitignore
.gitignore
+1
-0
app/models/blogpost.rb
app/models/blogpost.rb
+4
-0
No files found.
.gitignore
View file @
f48647a4
...
...
@@ -6,6 +6,7 @@
config/deploy_config.yml
config/schedule.rb
config/database.yml
.bundle
vendor/bundle/
vendor/cache/
...
...
app/models/blogpost.rb
View file @
f48647a4
class
Blogpost
<
ApplicationRecord
def
to_param
"
#{
self
.
id
}
-
#{
self
.
title
}
"
.
parameterize
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment