Move request method name to a method.
Added ability to change status code when using render_json
Added ability to run another action from inside an action.
Run index action from Gate#get.
Handle invalid gate name when trying to update gate value.