Skip to content

Instantly share code, notes, and snippets.

@Carmer
Last active January 24, 2017 17:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Carmer/66949942c756692e34cab1774f963646 to your computer and use it in GitHub Desktop.
Save Carmer/66949942c756692e34cab1774f963646 to your computer and use it in GitHub Desktop.
  1. Define CRUD.

  2. Why do we use set method_override: true?

  3. Explain the difference between value and name in this line: <input type='text' name='task[title]' value="<%= @task.title %>"/>.

  4. What are params? Where do they come from?

  5. Check out your routes. Why do we need two routes each for creating a new Task and editing an existing Task?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment