format.json { render :json => @hosts,:methods => [:running, :version, :cpu, :mem, :uptime] }
目前 Vagrant 和这个版本兼容有问题。昨天被坑……
我也是觉得没对比,就直接出结论了,有个平均指标也可以。
如果真的非要用 Oracle 还是推荐 JRuby;因为 ruby-oci8 只支持 32 位的 oci,这个还和 Oracle client 有关,在不同环境下的表现还有不同……JRuby 借助 ojdbc 会省事很多。
可以先现在本地预览一下,看看有木有什么问题
#8 楼 @zhang991228752 使用 rvm 的 gemset
santo.chan123#gmail.com 十分感谢
整好出差在南京,过去很方便
<%= fields_for "add_dev[syss_attributes][]", sys do |sys_stat| %>
好像应该是
<% fields_for "add_dev[syss_attributes][]", sys do |sys_stat| %>
类似的还有 form_for;看起来好像就这些问题
就是不能查询……
puts Tmnl.column_names
可以正常执行,得到:
status_id
cp_no
terminal_ip
terminal_mask
terminal_port
dial_no
machine_id_cur
machine_ip_cur
conn_time_cur
machine_id_prev
machine_ip_prev
conn_time_prev
send
receive
status
last_beat_time
refresh_time
terminal_id
area_code
status_code
protocol_code
run_date
type_code
manufacturer
coll_mode
ArgumentError: wrong number of arguments (1 for 0)
__run_callback at /Users/santochan/.rvm/gems/jruby-1.6.7.2/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:399
_run_find_callbacks at /Users/santochan/.rvm/gems/jruby-1.6.7.2/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:390
__send__ at org/jruby/RubyBasicObject.java:1698
send at org/jruby/RubyKernel.java:2097
run_callbacks at /Users/santochan/.rvm/gems/jruby-1.6.7.2/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:81
init_with at /Users/santochan/.rvm/gems/jruby-1.6.7.2/gems/activerecord-3.2.8/lib/active_record/base.rb:523
instantiate at /Users/santochan/.rvm/gems/jruby-1.6.7.2/gems/activerecord-3.2.8/lib/active_record/inheritance.rb:68
find_by_sql at /Users/santochan/.rvm/gems/jruby-1.6.7.2/gems/activerecord-3.2.8/lib/active_record/querying.rb:38
collect! at org/jruby/RubyArray.java:2363
find_by_sql at /Users/santochan/.rvm/gems/jruby-1.6.7.2/gems/activerecord-3.2.8/lib/active_record/querying.rb:38
logging_query_plan at /Users/santochan/.rvm/gems/jruby-1.6.7.2/gems/activerecord-3.2.8/lib/active_record/explain.rb:40
find_by_sql at /Users/santochan/.rvm/gems/jruby-1.6.7.2/gems/activerecord-3.2.8/lib/active_record/querying.rb:37
exec_queries at /Users/santochan/.rvm/gems/jruby-1.6.7.2/gems/activerecord-3.2.8/lib/active_record/relation.rb:171
to_a at /Users/santochan/.rvm/gems/jruby-1.6.7.2/gems/activerecord-3.2.8/lib/active_record/relation.rb:160
logging_query_plan at /Users/santochan/.rvm/gems/jruby-1.6.7.2/gems/activerecord-3.2.8/lib/active_record/explain.rb:40
to_a at /Users/santochan/.rvm/gems/jruby-1.6.7.2/gems/activerecord-3.2.8/lib/active_record/relation.rb:159
find_first at /Users/santochan/.rvm/gems/jruby-1.6.7.2/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:378
first at /Users/santochan/.rvm/gems/jruby-1.6.7.2/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:122
__send__ at org/jruby/RubyBasicObject.java:1698
send at org/jruby/RubyKernel.java:2097
find at /Users/santochan/.rvm/gems/jruby-1.6.7.2/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:105
__send__ at org/jruby/RubyBasicObject.java:1704
find at /Users/santochan/.rvm/gems/jruby-1.6.7.2/gems/activerecord-3.2.8/lib/active_record/querying.rb:5
(root) at table_to_csv.rb:44
老婆给当程序员的老公打电话:“下班顺路买一斤包子带回来,如果看到卖西瓜的,买一个。”当晚,程序员老公手捧一个包子进了家门。。。老婆怒道:“你怎么就买了一个包子?!”老公答曰:“因为看到了卖西瓜的。”
你们现在属于中电装备了?
#29 楼 @fresh_fish @huacnlee 桌面提示……没发现效果啊
#27 楼 @fresh_fish 再试试……刚才没看清
#24 楼 @fresh_fish 回一下啊