#7 楼 @santochancf 
我之前搜到了http://stackoverflow.com/questions/10596073/deprecation-warning-for-creating-attribute-currency
但是仍然没有搞清楚,感谢您的讲解,让我对 Ruby On Rails 又多了解一点.
#5 楼 @santochancf 改完后 controller 是这样的:
def get_host_status_api
    @server=Server.find_by_openid(session[:openid])
    @hosts = @server.hosts
    @hosts.each  do |host| 
        if  @server.skip_check
==>        host.running='unknown'
        else
==>        get_host_status(host.ip).each_pair {|name, val| host.send("#{name}=",val)}
        end
    end
    respond_to do |format|
==>  format.json { render :json => @hosts,:methods => [:running, :version, :cpu, :mem, :uptime] }    
    end
  end
现在工作正常,也没有警告了. 您能稍微解释下么,或者有什么资料可以参考,我没太明白,谢谢。
#3 楼 @santochancf 是的。您的意思是直接在原文件上修改吧?
#1 楼 @santochancf 返回:
[{"cpu":"0.2%","created_at":"2013-07-05T17:51:53+08:00","id":126,"ip":"192.168.1.101","mem":"25%","nick":"debian\n","running":"idle","server_id":5,"updated_at":"2013-07-05T17:51:53+08:00","uptime":"1 days, 3:2","version":"20130612","running":"idle","version":"20130612","cpu":"0.2%","mem":"25%","uptime":"1 days, 3:2"},{"created_at":"2013-07-12T10:57:17+08:00","id":127,"ip":"8.8.8.8","nick":null,"running":"unknown","server_id":5,"updated_at":"2013-07-12T10:57:17+08:00","running":"unknown"}]
报错依旧 补充下: Ruby On Rails 版本为 3.2.13
#7 楼 @blacktulip 
我执行的命令是这样的 
wget -O - http://a.com/b.sh | bash - &
运行后并没有获得输入焦点,按任意键才会跳转到输入...
gem install qq_connect
试试看,还集成了微博的一些 API...