Created
February 11, 2014 23:43
-
-
Save hecbuma/8946775 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Executes a request simulating GET HTTP method and set/volley the response | |
def get(action, parameters = nil, session = nil, flash = nil) | |
process(action, parameters, session, flash, "GET") | |
end | |
# Executes a request simulating POST HTTP method and set/volley the response | |
def post(action, parameters = nil, session = nil, flash = nil) | |
process(action, parameters, session, flash, "POST") | |
end | |
# Executes a request simulating PUT HTTP method and set/volley the response | |
def put(action, parameters = nil, session = nil, flash = nil) | |
process(action, parameters, session, flash, "PUT") | |
end | |
# Executes a request simulating DELETE HTTP method and set/volley the response | |
def delete(action, parameters = nil, session = nil, flash = nil) | |
process(action, parameters, session, flash, "DELETE") | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment