Mod2 Core Learning Checklist (Rails)

  1. What are the 7 RESTful routes (HTTP Verb + URL)? What is the purpose of each action?
  1. What is the MVC Paradigm?
  • What are the responsibilities of the Models?
  • What are the responsibilities of the Views?
  • What are the responsibilities of the Controllers?
  1. How are the values of the params hash assigned? How are the keys assigned?
  • Between a user and a programmer, who has control over the keys?
  • What about the values?
  1. An example of a route in Rails looks like the following: get '/hats', to: 'hats#index'. What are the four parts of that route and what is the responsibility of each part?
  1. What does the resources keyword in routes do for us?
  1. There are 4 generic path helpers that come from Rails. Which of the 4 requires an argument? Which does not?
  1. Which of the 7 RESTful actions require you to find an instance from the database? Which does not?
  1. Which of the 7 RESTful actions alters the database and where do these actions get the necessary information from?
  1. When do we use <% %> vs <%= %>?
  1. What are some differences between render and redirect_to?
  1. What are the arguments for a link_to? What are the arguments for a button_to? What are some differences between the two?
  1. form_for is a form for something, i.e. a form_for takes something as an argument. What is that something?
  1. What does the action and method keywords in a form do? How do we assign the action and the method for a form_forand a form_tag?
  1. When would be an appropriate time to use a collection_select? What are the four arguments that a collection_select take?
  1. How do we show the associated objects of an object on a its show page? where does this helper method come from/where is it defined?
  1. When do validations occur? Where should we write them in our server?
  1. If the user fails to meet some validations, how do we give the user the feedback for why the database was not altered?