0
我正在開發一個Ruby on rails(2.3.8)應用程序與數據存儲amazon simpledb。 我正在使用的版本AWS-SDB的AWS-SDB寶石(0.3.1) 有一些錯誤,但問題在本教程從亞馬遜的評論概述:http://developer.amazonwebservices.com/connect/entry.jspa?externalID=1242rails2和aws-simple(simpledb):數據不能從amazon simpledb中刪除?
我想知道如果我這是一個寶石或代理問題的bug,但我不能從simpledb中刪除任何數據。其他人遇到過這個問題還是有線索?
>> t=Team.find(:first)
=> #<Team:0x329f718 @prefix_options={}, @attributes={"updated_at"=>Fri May 28 16:33:17 UTC 2010, "id"=>0}>
>> t.destroy
=> #<Net::HTTPOK 200 OK readbody=true>
>> t=Team.find(:first)
=> #<Team:0x321ad38 @prefix_options={}, @attributes={"updated_at"=>Fri May 28 16:33:17 UTC 2010, "id"=>0}>
根據上述教程,團隊模型是一個正常的ActiveResource模型。
class Team < ActiveResource::Base
self.site = "http://localhost:8888" # Proxy host + port
self.prefix = "/fb2010_dev/" # SDB domain
end