SCarJAY/closet_app — pull request #4 by carriexu (2014-10-03 22:29:43+00:00)
Title: added restful routes for user

Note: previously I incorrectly created a pull request to the master branch, already closed that request. This is the same request to the closet app developer branch.

This adds the restful routes (show, index, edit, new, delete, update) for the user resource, all functions as expected except for the delete/destroy route, I will put in a fix soon. Also the current user/index page is showing what an "admin" would see, a regular user "client" would not be able to see that page. Will work on adding the two different roles "admin" and "client" and differentiate the views they can see based on their role. The database would need to add the role attribute to the schema and include a role for each instance of the user we create in the seed file.