Skip to content

Complete MediaRanker#42

Open
dezshino wants to merge 91 commits intoAda-C4:dfp/masterfrom
dezshino:dfp/master
Open

Complete MediaRanker#42
dezshino wants to merge 91 commits intoAda-C4:dfp/masterfrom
dezshino:dfp/master

Conversation

@dezshino
Copy link

@dezshino dezshino commented Dec 4, 2015

Complete MediaRanker functionality, with Bootstrap styling and rspec. Also DRYed up code using partials and rspec shared examples.

…ute pointing to media#index, add a view for media#index
@lilagrc lilagrc self-assigned this Jan 6, 2016
@ElsaTKO ElsaTKO assigned ElsaTKO and unassigned ElsaTKO Jan 12, 2016
@lo-k lo-k self-assigned this Jan 12, 2016
Copy link

Choose a reason for hiding this comment

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

It looks like you search for this album in multiple methods. A possible way you could DRY up your code in a refactor would be to extract finding the album into its own private method and create a before_action that calls it before each method except: [:index, :new, :create].

@lo-k
Copy link

lo-k commented Jan 12, 2016

Great work on this project @desireepoland ! You definitely know about Ruby CRUD-ing. Your code is very clean and easy to read. I especially like that you leveraged partials to DRY up your code. You are picking up great habits early on!

This project is also a great place to practice rspec testing so I would highly recommend completing your tests here if you come back to refactor this. You are on the right track and have a lot of good groundwork commented out.

Also, it is not required, but you could consider removing extraneous .coffee and .scss files that you are not using as a way to clean out your application directory.

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.

4 participants