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
| 1. Why do they call it a relational database? | |
| -A relational database is a database which connects data between tables within one or many databases. | |
| 2. What is SQL? | |
| -SQL is a standard language for accessing and manipulating databases. SQL stands for Structured Query Language. SQL lets you access and manipulate databases. SQL is an ANSI (American National Standards Institute) standard. | |
| 3. There are two predominant views into a relational database. What are they, and how are they different? | |
| -The predominant views are one-to-many and many-to-many. The linking field is the "id" field, and it will link one record to many records, or many records to many records. | |
| 4. In a table, what do we call the column that serves as the main identifier for a row of data? We're looking for the general database term, not the column name. |
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
| # in the blackjack.erb (which is the yield in the layout.erb) | |
| <%= player_view %> | |
| <%= dealer_view %> | |
| # in the helper method of main.rb | |
| def card_pic(card) | |
| return "<img id=\"card\" src=\"images/cards/#{card[0]}_#{card[1]}.jpg\" />" | |
| end |
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
| # Sinatra environment | |
| # Make sure that the link to the "bootstrap.min.js" file is correct in your layout.erb (shown below): | |
| <script src="/vendor/bootstrap/js/bootstrap.min.js"></script> | |
| # Put this in your .erb | |
| <%= show_env %> | |
| # Place constant inside of your main.rb | |
| SHOW_ENVIRONMENT = true |