Last active
August 29, 2015 14:07
-
-
Save elskwid/2d3e4b4d839ef6c7c992 to your computer and use it in GitHub Desktop.
Ruby on Rails Fundamentals Warmup Day 03
This file contains 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. In, MVC, what does the M stand for? | |
# 2. The V? | |
# 3. And, of course, the C? | |
# 4. In what part of MVC did we spend the most time last week? | |
# 5. Change to the project directory | |
# 6. List the contents of the project directory | |
# 7. Start the Rails console in our project directory. | |
# HINT: use the rails command and a subcommand to do this. Don't forget | |
# to prefix with 'bin/'. | |
# 8. How many courses do you have in your database? | |
# HINT: Course.????? | |
# ^-- what method do we call on the Course model/class? | |
# 9. Find the first course in our database. | |
# HINT: Course.????? | |
# ^-- what method do we call on the Course model/class? | |
# 10. Find the course with an id of 2. | |
# HINT: ??????.????(?) | |
# 11. Create a variable named 'c' and set it to the first course in our database. | |
# HINT: ? = ??????.????? | |
# 12. Change the name of that course to "New Course Name" | |
# HINT: c.???? = ... | |
# 13. Find the last course in our database and set it to a variable named 'last' | |
# 14. How would you delete the last course? | |
# HINT: last.?????? | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://bit.ly/1rtwCfr