Typo in the API help in ActiveResource example
Hi, there seems to be a couple of typos in the API help, in the ActiveResource section :
- the self.site variable misses a " at the end
- the url needs https or it throws an error when you try to find stories
the following code works :
class Story < ActiveResource::Base
self.site = "https://www.pivotaltracker.com/services/v2/projects/:project_id"
headers['X-TrackerToken'] = 'TOKEN'
end
- the self.site variable misses a " at the end
- the url needs https or it throws an error when you try to find stories
the following code works :
class Story < ActiveResource::Base
self.site = "https://www.pivotaltracker.com/services/v2/projects/:project_id"
headers['X-TrackerToken'] = 'TOKEN'
end
1
person has this problem
I have this problem, too!
Tell me when someone solves it.
The more people who report this problem, the more it gets noticed.
The more people who report this problem, the more it gets noticed.
The company marked this problem solved.
-
Inappropriate?Thanks for reporting the missing " in the site field, we'll get documentation corrected.
The request only needs to be https if the "Use HTTPS" option is selected on the project settings page.
-mark
1 person says
this solves the problem
-
Inappropriate?Ok I see, I forgot I checked this option a while ago. Thanks for the help.
I’m thankful
Loading Profile...


