-
Notifications
You must be signed in to change notification settings - Fork 24
Lisa's Tunes & Takeout #3
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
base: master
Are you sure you want to change the base?
Conversation
…e Tunes and Takeout API
…ere's an authenticated user logged in
…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
…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
…k instead of just the image being a link
… return an Array of Food objects)
…nd the Array contains Music objects
… TunesTakeoutWrapper
…gn up from the same page
…te. changed panel titles to suggestion #
| redirect_to root_path | ||
| else | ||
| redirect_to root_path | ||
| end |
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.
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
|
Hey Lisa, Keep with your good work💪💪💪 !! |
Solo project by Lisa Rolczynski.