Skip to content

HW#9

Open
BlueColorPencils wants to merge 11 commits intoAda-C5:masterfrom
BlueColorPencils:master
Open

HW#9
BlueColorPencils wants to merge 11 commits intoAda-C5:masterfrom
BlueColorPencils:master

Conversation

@BlueColorPencils
Copy link
Copy Markdown

here it is.. I didn't do any VCR testing stuff that tests the APIs. I met most of the requirements.

Cristal Tay added 10 commits May 16, 2016 16:16
…it's been awhile.. since I've said I'm sorry.
…e the unfavorite path happen with the button. currently trying to refactor code in the suggestions controller. if it all goes to shit. revert commit back to this point.
… moved some repetitive shit into private methods in the suggestions controller.
Comment thread app/models/music.rb

class Music < ActiveRecord::Base
def self.search(type, id)
if type.downcase == "artist"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this would be a great place to use a case/when statement instead of if/elsif to set the type of search. Both ways work.

@lacuchilla
Copy link
Copy Markdown

Great job overall! Your code was easy to read and well written.

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.

2 participants