In preparation for the hackathon this week I have been trying to revive our in-house cryptocurrency project, AKA ClarkeCoin
4:15 - 5:15 Each Day
- What are the core technical tools that make a blockchain-based system work?
- What is a hashing algorithm?
| ## Models, Databases, Relationships in Rails | |
| #### What is the difference between a primary key and a foreign key? Where would we find a primary key? What would it be called by default? Where would we find a foreign key? What is the naming convention for a foreign key? | |
| Primary key is a unique identifier in Tables. It can exist as a foreign key in AnotherTables or other tables with which it has a relationship. "id" - default name. "table_id" in AnotherTables. | |
| #### Write down one example of: | |
| * a `one-to-one `relationship: (current democratic society enables) one country has one president | |
| * a `one-to-many relationship': one country has many citizens | |
| * a `many-to-many relationship`: (given current industrial agricultural norms...I assume...) each agricultural crop has many producers, each producer has many agricultural crops |
In preparation for the hackathon this week I have been trying to revive our in-house cryptocurrency project, AKA ClarkeCoin
4:15 - 5:15 Each Day
It is the gatekeeper of the application. It's the first response in the request/response chain. It takes information from a request, parses it and then executes to plan depending on the HTTP verb, which determines what the client gets back.
Either as instance variable or local variables within the verb block. If local variable, utilize :locals, paired with view erb file/variable.
Ex: Instance Variable