Reconfigure Vote controller to be DRY and accept JSON Requests from Vote Backbone model -Rewrite vote_params method to exclude is_upvote (allows for searching if incoming vote already exists without id) -Add upvote_param method that allows for setting of solely the is_upvote attribute -Create a private save_vote method -Create a private set_vote method that will set is_upvote attribute properly -Use save_vote and set_vote method in the update method if logged in -Use set_vote and save_vote method in create method if logged_in after checking if vote by user already exists
Reconfigure Vote controller to be DRY and accept JSON Requests from Vote Backbone model
-Rewrite vote_params method to exclude is_upvote (allows for searching if incoming vote already exists without id)
-Add upvote_param method that allows for setting of solely the is_upvote attribute
-Create a private save_vote method
-Create a private set_vote method that will set is_upvote attribute properly
-Use save_vote and set_vote method in the update method if logged in
-Use set_vote and save_vote method in create method if logged_in after checking if vote by user already exists

red-spotted-newts-2014/food-overflow,red-spotted-newts-2014/food-overflow