For this exercise we're going to build an app that let's us create 1 sentence startup pitches for a particular industry, and allow us to input a certain amount of funding.
Before starting this project, be sure to bundle install
.
You don't necessarily do any of these in a certain order but each of these steps must be completed!
title
of the pitchindustry
the pitch is infunding
necessarySo you built this great application that showcases some silly startup pitches! Let's take this application up a bit with a few stretch features. These will be things will not necessarily go over in class but applies the knowledge you have so far:
Try implementing everything with an additional controller like PitchesController
.
You need to configure the app to support that but it is just 1 additional line of code.
All the routes you would write in the ApplicationController
can fit into the PitchesController
.
Create a navbar that let's us navigate to the index route and the new route from any
page within our program. Don't just copy and paste this into ever .erb
.
On the index route, you should have a search form that will allow you to search for a given industry and list out all the pitches under that industry. How can you make sure that the casing doesn't matter?
Try applying CSS to your website! Users don't like looking at black/white websites. Explore different websites and see what part of their aesthetic you like about them.
If you wanna get a headstart for tomorrow, try to refactor your code. Many of the pitches will be connected to the same industries. Instead of associating them with "strings" each time, how could we leverage a new model and build a relationship between an industry and a pitch? If you're stuck, talk it through with Prince or Gigi!