##Learning Competencies
- Implement CRUD in a MVC application (using Sinatra)
- Use Active Record to perform CRUD operations on a database
- Use RESTful routes
##Summary
Using Sinatra, create a simple notes application with a single notes table in the database and all CRUD routes and views.
You can start from the included skeleton in the p1_crud
directory.
##Releases
###Release 0 : RESTful CRUD
Modify the skeleton code to achieve the following functionality:
- A user Create a new note.
- A user can Read all the notes created.
- A user can Update a note.
- A user can Delete an existing note.
- Verify that a user really wants to delete a particular note.
Your note table should have a title
and content
field. You should use RESTful routes for each operation.
Use Partials to convert your page to a single page application.
Redo your application so that each CRUD route is triggered from an AJAX request. When necessary, return a partial to update your display.
##Resources