Open
Conversation
…ade env file and added file to gitignore
…er the class that was messing up the CVR
…able to render a list of search results
…he from and to parameters
…ith how to inject the from/to into the params
…ut to start writing tests on the edamam_api to see why it's returning an empty array for the list_recipes method
…params and making a new path
…nly gives 100 recipes at a time. Also made show controller
…ller methods and then deploy to heroku
…he number_of_recipes is <10, 10-100, or greater than 100
…ause heroku believes the @number_of_recipes is nil
…messing up heroku
…apping header background image
…ta still doesn't line up correctly
…dded two lines to production.rb per stackoverflow heros
… a large white gap between the image and the footer
API MuncherWhat We're Looking For
|
CheezItMan
reviewed
Nov 6, 2017
| end | ||
| end | ||
|
|
||
| describe "search by page (i.e. pagination)" do |
| it "redirects to the home page if the user enters nothing as a keyword" do | ||
| get recipes_search_path params:{keywords: ""} | ||
| must_redirect_to root_path | ||
| flash[:failure].must_equal "You did not enter any keywords. Please enter ingredient keywords into the search bar." |
There was a problem hiding this comment.
Your controller doesn't actually add that flash message.
| #binding.pry | ||
| @keywords = params['keywords'] | ||
| if @keywords.blank? | ||
| redirect_to root_path |
…changed position from absolute to relative)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
API Muncher
Congratulations! You're submitting your assignment!
Comprehension Questions