Is there a configuration option avilable in ActiveResource to change the request url structure
for example when my client application try to access services of particular user from the api, ActiveResource sending request to api url in the following structure
http://localhost:3000/api/v1/services.json?user_id=1
but instead i want the ActiveResource to send request to api url like this
http://localhost:3000/api/v1/users/1/services
These are the two model files i am using in my client rails applicaiton
user.rb
class User < ActiveResource::Base
self.site = "http://localhost:3001/api/v1"
has_many :services
end
service.rb
class Service < ActiveResource::Base
self.site = "http://localhost:3001/api/v1"
belongs_to :user
end
Any help , would be greatly appreciated.Thanks