我在数组中设置了活动记录对象.
我只想删除数组中的对象而不是数据库中的对象
a = Model.limit(2)
b = Model.first
a.delete(b)
Run Code Online (Sandbox Code Playgroud)
返回零值
它没有删除
反正是吗?
我正在尝试安装'''sudo gem install soap4r'''
但面对以下问题..
Successfully installed httpclient-2.2.4
Successfully installed soap4r-1.5.8
2 gems installed
Installing ri documentation for httpclient-2.2.4...
RDoc failure in lib/httpclient.rb at or around line 405 column 16
Before reporting this, could you check that the file
you're documenting compiles cleanly--RDoc is not a
full Ruby parser, and gets confused easily if fed
invalid programs.
The internal error was:
ERROR: While executing gem ... (NoMethodError)
undefined method `name' for #<RubyToken::TkLPAREN:0xb6598024>
Run Code Online (Sandbox Code Playgroud)