Skip to content
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

Open
wants to merge 21 commits into
base: lrg/master
Choose a base branch
from
Open

Lrg/master #38

wants to merge 21 commits into from

Conversation

lgranger
Copy link

@lgranger lgranger commented Dec 4, 2015

No description provided.

@wangg131 wangg131 assigned wangg131 and unassigned wangg131 Jan 6, 2016
@ElsaTKO ElsaTKO self-assigned this Jan 12, 2016
def upvote
album = Album.find(params[:id])
rank = album.rank + 1
album.update_attribute(:rank, rank)
Copy link

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>
Copy link

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.

@ElsaTKO
Copy link

ElsaTKO commented Jan 12, 2016

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. 😄 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants