Skip to content

Instantly share code, notes, and snippets.

@Colt
Created February 28, 2014 01:57
Show Gist options
  • Save Colt/9263742 to your computer and use it in GitHub Desktop.
Save Colt/9263742 to your computer and use it in GitHub Desktop.
Rails Basics Quiz

Rails Basics Quiz


  • Create a new Rails app called puppies
  • Make a puppy controller
  • Add an index method to the puppies controller
  • Add an index view
  • What do you add to your routes file to make your homepage route to the index view you just created?
  • Create a model for your puppies controller.
  • If this is your migration file, how do you add a string column named breed?
  • What terminal command do you need to type in order for your changes to alter the database?
  • Shoot you messed up! How do you reverse changes to your database?
  • What is the terminal command to view all your routes?
  • What does MVC stand for?
  • What is params? What kind of data structure is it?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment