-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lrg/master #38
base: lrg/master
Are you sure you want to change the base?
Lrg/master #38
Conversation
… edit, index, new, and show views
…ndex, new, and show views
…ler specs now passing
def upvote | ||
album = Album.find(params[:id]) | ||
rank = album.rank + 1 | ||
album.update_attribute(:rank, rank) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 There's also a cool .increment!
method that does the same thing as lines 39-40.
@@ -0,0 +1,14 @@ | |||
<div class="col-lg-12"> | |||
<h2>Edit Album</h2> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You might be able to create a shared form for editing any media type, and likewise for creating any media type.
Awesome job! 🎉 This project is super solid. I only added a few pointers for next time around, like shortcuts to share some code between models/controllers and some other specs to be aware of. 😄 👍 |
No description provided.