activeresource
activeresource copied to clipboard
Connects business objects and REST web services
``` class Base < ActiveResource::Base self.site = "https://xxx.atlassian.net/rest/servicedeskapi/" end class Comment < Base self.prefix = "/request/:request_id/" end ``` Next getting comments by `Comment.find(:all, params: { request_id: "XX-9"})` produces invalid URL:...
I'm learning to use Github's pull requests, so I could contribute to my favourite gems. Please do not judge harshly if I'm doing something wrong - it is not because...
``` class Base < ActiveResource::Base self.site = "https://xxx.atlassian.net/rest/servicedeskapi/" end class Request < Base has_many :comments end class Comment < Base self.prefix = "/request/:request_id" belongs_to :request end ``` Trying to get...
After PR #359 (I guess) has been merged, we can't define common headers on base classes and make them available to subclasses, as expected. This way, each subclass must configure...
Trying to execute just part of the test suite, it fails with following error: ~~~ $ ruby -Ilib:test -e 'Dir.glob "./test/**/authorization_test.rb", &method(:require)' Run options: --seed 50377 # Running: EEEE.......EE.EE........... Finished...
## What Raises a custom `ActiveResource::ConnectionError` when failing to connect to an external endpoint completely, changing something like: ``` Errno::ECONNREFUSED: Failed to open TCP connection to 127.0.0.1:4568 (Connection refused -...
There's no ActiveResource exception for HTTP status 402. It is already used by Shopify (https://shopify.dev/docs/api/usage/response-codes). It can be an easy PR. ```diff diff --git a/lib/active_resource/base.rb b/lib/active_resource/base.rb index 766338b..f1189cb 100644 ---...
ActiveResource exception for HTTP status 402 (`ActiveResource::PaymentRequired`). It is already used by Shopify (https://shopify.dev/docs/api/usage/response-codes).
First of all, thanks for this gem it helps a lot. ## Problem I encountered a challenge while attempting to integrate this gem with another Rails application that utilizes Active...