Skip to content

Conversation

@Lisa-Sano
Copy link

Solo project by Lisa Rolczynski.

Lisa-Sano added 30 commits May 16, 2016 15:19
…either find or create a new instance of user based on the credentials from the spotify login
…list of suggestions. path to the suggestions#index route
Lisa-Sano added 25 commits May 20, 2016 14:41
…hat wasn't capturing the query term in the params hash after searching
….escape() when passing each uri to the Yelp business API
…rdless of whether they have an image associated with their spotify account
…fter going to a page requiring you to be signed in
redirect_to root_path
else
redirect_to root_path
end

Choose a reason for hiding this comment

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

To DRY your code better, you could use "redirect_to root_path" only once! and be a better-lazy-programmer :)
and replace lines (9-14) with only two lines of code:

  session[:user_id] = user.id if user 
  redirect_to root_path

@TammyHer
Copy link

Hey Lisa,
I enjoyed reading your code! It's clear and nicely handle.
All the variables names have good logic, you kept organized indentation and you had good separation in logic between model-view-controller code.

Keep with your good work💪💪💪 !!
Tammy

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