Flatiron Kitchen


Fork this repository. Deliver your solution in master.


Flatiron Kitchen started off as a bubble tea bar in the corner of Flatiron School and is now a five-star restaurant known for its blueberry pancakes.

Things used to be simpler when there were only a few chefs at Flatiron Kitchen, but now that it's expanding an application is needed to keep track of all of the world-class recipes.

We need to be able to track which ingredients the restaurant has available and which ingredients are used in each recipe.

Your application should use a join table called "recipe_ingredients" to keep track of the ingredients for each recipe.

Build your site so that it passes the tests in spec/features. There aren't tests for index pages or things like page headers or links, but feel free to add these (otherwise your app will be difficult to navigate).

NOTE: when you generate models, controllers, etc., be sure to include the --no-test-framework option so that Rails doesn't create tests (which are already included in the lab).

NOTE: Each test has a helpful comment above it!

HINT: If you give a checkbox <input> a name attribute like ninja_turtle_colors[], each ninja turtle color will be passed to the params hash in an array: { ninja_turtle_colors: ["red", "blue", "orange", "purple"] }.


Keep track of the quantity of ingredients currently on hand. Display on each recipe page how many dishes can be made given the existing ingredients.

Write RSpec unit tests to verify your ingredients-to-dishes calculator.


View Flatiron Kitchen on Learn.co and start learning to code for free.

Unlock your future in tech
Learn to code.

Learn about Flatiron School's Mission

With a new take on education that falls somewhere between self-taught prodigy and four-year computer science degree, the Flatiron School promises to turn students with little programming experience into developers.

In the six months since the Manhattan coding school was acquired by WeWork, it has spawned locations in Washington, D.C., Brooklyn, and London. Now, WeWork is opening a fourth Flatiron School location, this time in Houston.

Adam Enbar, Flatiron School's cofounder, believes now is the time to grow. "How the world is changing has impacted working and learning in very similar ways. We think education fundamentally is about one thing: enabling people to pursue a better life."

Learn. Love. Code.
Students come to Flatiron School to change their lives. Join our driven community of career-changers and master the skills you need to become a software engineer or a data scientist.
Find Us