The app i am working on use the API from TrackMania 2/Maniaplanet
The current part i am trying to use is the request to return one player data :
http://ws.maniaplanet.com/players/sylario/
where sylario is the user name. Removing the last "/" return a 404.
Currenrly I have managed to make active resource generate the following request by asking "#{playername}/"
:
I'd like to remove the .json as the API return a 404.
Here is my model class :
class Player < ActiveResource::Base
self.site = "http://ws.maniaplanet.com/"
self.user="********"
self.password="************"
end
The request from a controller:
Player.find("sylario/")
I also forsee problem when rails will receive the HTML formated answer, but one thing at a time.
So, how to remove the .json?