search for: rest_resourc

Displaying 2 results from an estimated 2 matches for "rest_resourc".

Did you mean: rest_resource
2014 Apr 17
0
RestClient::ResourceNotFound in UsersController#index
...r a sample application for learning purpose. But when I try to make a "GET" request through the RestClient it is showing error as RestClient::ResourceNotFound in UsersController#index def index uri = "#{API_BASE_URL}/users.json" # specifying json format in the URl rest_resource = RestClient::Resource.new(uri, USERNAME, PASSWORD) # It will create new rest-client resource so that we can call different methods of it users = rest_resource.get @users = JSON.parse(users, :symbolize_names => true) # we will convert the return data into array of hash.see json data...
2006 Feb 09
0
Need help with REST using Rails
I am using the rest_resource.rb file available from the article: http://www.xml.com/pub/a/2005/11/02/rest-on-rails.html?page=1 This script provides a method respond to a post request that sends an XML to the server to update the database. It also responds to a get request with a response containing an XML with data from th...