Displaying 1 result from an estimated 1 matches for "symbolize_names".
2014 Apr 17
0
RestClient::ResourceNotFound in UsersController#index
...ri = "#{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 parsing here
end
Please help.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, se...