maryhipp / mycookbook Goto Github PK
View Code? Open in Web Editor NEWHome Page: http://myc00kb00k.herokuapp.com/
Home Page: http://myc00kb00k.herokuapp.com/
User story: User can save recipes from search to their Cookbook
Error: NoMethodError in RecipesController#create; undefined method `[]' for nil:NilClass
error arises when attempting to iterate through JSON to grab ingredients and save them into database as array; works when exact same method is used to display ingredients in search page
Already attempted:
Troubleshooting in pry...works in pry!
Adding "serialize :ingredients" to recipe model
Hours spent researching last night and can't find solution
The link for your ERD requires visitors to login to Gliffy. Make it an image file and link to that image from within the readme markdown file.
User story: User can add their own personal recipes to Cookbook by completing form
Error: Recipes are saved with nil info
Things I've tried:
I'm trying to use control flow to have two different "routes" leading to my create method; not working and I'm having trouble finding any results on internet that seem to have a similar plan
Hi Mary,
Nicely done on your first project. It's clear you put a lot of thought into the datamodeling and user stories (great tests!), which probably made the actual implementation a heck of a lot easier. If I have to nitpick regarding process, I'd say "Wireframe!", because wireframes will be super helpful when you get to coding up the user interface, as you'll have a blueprint to go by and therefore have almost no style-related decisions to stress over while coding.
Also, your RecipesController is uber repetitive. You could abstract the create & update actions into a function (the only conditional would be whether to split on a dollar sign versus comma/period.
User story: User can save recipes from search to their Cookbook
Error: NoMethodError in RecipesController#create; undefined method `[]' for nil:NilClass
Already attempted:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.