search for: some_api

Displaying 1 result from an estimated 1 matches for "some_api".

Did you mean: some_app
2007 Nov 08
0
Models for external REST services
...end snippet #============================ On the side of the controlloer I have no idea how to start, this is what I think it should look like, def do_sign_in @sign_in_form #this should come from the form in the view, I have no idea how to get this object api_url = "www.example.com/some_api.php" response = some_object.do_post (api_url, :params =>{ "api_key" => @key, "param1" => @sign_in_form.field1, "param2" => @sign_in_form.field2, } ) # after this we should go to a do_sign_in.rjs and do all the ajax updates end #=================...