Closed jamesdabbs closed 9 years ago
https://github.com/rob-hutchinson/todo-rails
My interface doesn't look very good but I was more concerned with practicing using rails than making the html and css look pretty. I couldn't get the delete function to work.
Wait! I got deletes to work after today's lecture. Forgot about / didn't know about button_to or form_tag.
One thing I noticed is that if I try to go somewhere that I don't have permission to, say '/lists/2' or something, then sign in, it redirects me to that '/lists/2' page whether it exists or not. Not a huge problem, but definitely something that you'd want to think about on a larger project.
Also, I can see lists belonging to other users.
Double checking today, but I can see the list belonging to the other use and the page where you add items to that list, but then it errors out (as it should) because "Couldn't find List with 'id'=1 [WHERE "lists"."user_id" = ?]".
Due on Mar 04 @ 09:00am Build a robust Todo list manager using Rails
Objectives
Learning Objectives
After completing this assignment, you should:
Performance Objectives
get
andpost
to define routesas: ...
to define path helpers; use those - don't hardcode pathsDetails
Deliverables
A repo containing a Rails app with the following:
Requirements
Normal Mode
Hard Mode