これは単純な問題だと思いますが、追跡しようとして髪を引っ張っています。chargify_api_ares gem をインストールしましたが、次のような基本的なことさえできません。
Chargify::Subscription.create
このパスエラーが発生すると。これはどういうわけかgemの問題に違いないと思いますが、ここからどこへ行くべきかわかりません。
更新: bundle show chargify_api_ares は正しいパスを示していますが、どうにかアクセスできません。まだランダムな環境関連のものを試しています。
問題の原因は、active_resource\base.rb にあるようです。
# Gets the \prefix for a resource's nested URL (e.g., <tt>prefix/collectionname/1.json</tt>)
# This method is regenerated at runtime based on what the \prefix is set to.
def prefix(options={})
default = site.path
default << '/' unless default[-1..-1] == '/'
# generate the actual method based on the current site path
self.prefix = default
prefix(options)
end
私が理解しているように、Chargify.subdomain は site.path を設定する必要がありますが、何が起こっているのかを知るのに十分なほどまだ activeresource を理解していないので、引き続き掘り下げます。