Fork then clone this repository.
Commit once after completing each step. If you prefer to write Rails apps 'by hand' rather by using the rails generators, you may do so instead.
- From the command line, create a new Rails application called
todo_app
that uses a PostgreSQL database. - From the command line, create your database then generate a
Todo
model.Todo
should have two attributes:content
(string) andis_completed
(boolean). - From the command line, run the appropriate
rails
command to generate your schema. - Create two
Todo
instances in your seed file, then run your seed file from the command line.
Start your Rails server to see your application in the browser. Commit once after completing each action or view.
- Set up routes and controller actions for
index
,new
, andcreate
. - Create views for the
index
andnew
actions. - Bonus: Set up routes and controller actions for
delete
,edit
, andupdate
. - Bonus: Create a view for
edit
where you can trigger anupdate
ordelete
.