Module: RiotRails::ActionController::HttpMethods

Defined in:
lib/riot/action_controller/http_methods.rb

Instance Method Summary collapse

Instance Method Details

#delete(uri, params = {}) ⇒ Object



8
# File 'lib/riot/action_controller/http_methods.rb', line 8

def delete(uri, params={}); perform_request("DELETE", uri, params); end

#get(uri, params = {}) ⇒ Object



5
# File 'lib/riot/action_controller/http_methods.rb', line 5

def get(uri, params={}) perform_request("GET", uri, params); end

#http_resetObject



4
# File 'lib/riot/action_controller/http_methods.rb', line 4

def http_reset; @env = {}; end

#post(uri, params = {}) ⇒ Object



6
# File 'lib/riot/action_controller/http_methods.rb', line 6

def post(uri, params={}) perform_request("POST", uri, params); end

#put(uri, params = {}) ⇒ Object



7
# File 'lib/riot/action_controller/http_methods.rb', line 7

def put(uri, params={}); perform_request("PUT", uri, params); end