Displaying 1 result from an estimated 1 matches for "api_base_url".
2014 Apr 17
0
RestClient::ResourceNotFound in UsersController#index
Hi,
I am trying to implement Rest Api for 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 => tru...