Closed this issue 5 years ago · 1 comments
When a non-logged in user copies a note, it creates a new note with no user_id it still saves to the DB. Causes error in /notes/index route.
user_id
/notes/index
Resolved w/ conditional check for logged_in? in notes/copy/:id route
logged_in?
notes/copy/:id