Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. Define CRUD.
  2. It allows you to create and view tasks, along with editing and deleting them afterwards.
  3.  
  4. Why do we use set method_override: true?
  5. To allow access to hidden methods within HTML.
  6.  
  7. Explain the difference between value and name in this line: <input type='text' name='task[title]' value="<%= @task.title %>"/>.
  8. Value is setting/updating the key/value within ruby and database. Name is setting what the input will be.
  9.  
  10. What are params? Where do they come from?
  11. It's something built in Sinatra and deals with user/client submission data and it's storage and retrieval.
  12.  
  13. Check out your routes. Why do we need two routes each for creating a new Task and editing an existing Task?
  14. SRP, to make our program function effectively in a clear and understandable way.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement