感谢大家,我自能自虐了
求解
感谢大侠,1.9.3 更改 rubygems 为 1.8.0 报如下错误 D:/webserver/Ruby/lib/ruby/gems/1.9.1/gems/rubygems-update-1.8.0/lib/rubygems/pl atform.rb:189:in class:Platform': uninitialized constant Gem::Platform::Depre cate (NameError) from D:/webserver/Ruby/lib/ruby/gems/1.9.1/gems/rubygems-update-1.8.0/li b/rubygems/platform.rb:6:in' from D:/webserver/Ruby/lib/ruby/site_ruby/1.9.1/rubygems/custom_require. rb:36:in require' from D:/webserver/Ruby/lib/ruby/site_ruby/1.9.1/rubygems/custom_require. rb:36:inrequire' from D:/webserver/Ruby/lib/ruby/gems/1.9.1/gems/rubygems-update-1.8.0/li b/rubygems/specification.rbin ' from D:/webserver/Ruby/lib/ruby/site_ruby/1.9.1/rubygems.rb:483:infind files' from D:/webserver/Ruby/lib/ruby/site_ruby/1.9.1/rubygems.rb:1108:in loa d_plugins' from D:/webserver/Ruby/lib/ruby/gems/1.9.1/gems/rubygems-update-1.8.0/li b/rubygems/gem_runner.rb:85:in' from D:/webserver/Ruby/lib/ruby/siteruby/1.9.1/rubygems/custom_require. rb:36:in require' from D:/webserver/Ruby/lib/ruby/site_ruby/1.9.1/rubygems/custom_require. rb:36:inrequire' from setup.rb:25:in `'
感谢,但是按照文档来做的,仍然报错,帮忙看看,感谢!
D:/webserver/Ruby/lib/ruby/gems/1.9.1/gems/rubygems-update-1.8.0/lib/rubygems/pl
atform.rb:189:in <class:Platform>': uninitialized constant Gem::Platform::Depre
cate (NameError)
from D:/webserver/Ruby/lib/ruby/gems/1.9.1/gems/rubygems-update-1.8.0/li
b/rubygems/platform.rb:6:in
'
from D:/webserver/Ruby/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.
rb:36:in require'
from D:/webserver/Ruby/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.
rb:36:in
require'
from D:/webserver/Ruby/lib/ruby/gems/1.9.1/gems/rubygems-update-1.8.0/li
b/rubygems/specification.rb:9:in <top (required)>'
from D:/webserver/Ruby/lib/ruby/site_ruby/1.9.1/rubygems.rb:483:in
find
_files'
from D:/webserver/Ruby/lib/ruby/site_ruby/1.9.1/rubygems.rb:1108:in loa
d_plugins'
from D:/webserver/Ruby/lib/ruby/gems/1.9.1/gems/rubygems-update-1.8.0/li
b/rubygems/gem_runner.rb:85:in
'
from D:/webserver/Ruby/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.
rb:36:in require'
from D:/webserver/Ruby/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.
rb:36:in
require'
from setup.rb:25:in `
想找个这样的项目学习一下
很是感谢大家的帮助,我还是用 1 楼大侠的方式实现了,5 楼大侠是不是可以实现动态读取日志啊,我把应用下来说 unkown method ,action mailer
谢谢大家帮忙解决
请教, 1、如何动态将 tomct 日志显示到页面上 2、如何监控 tomcat 是否启动
感觉大侠回复,我可能没有描述清楚,我也找了许多书,没有看到这样的例子,我再细说一下,请大侠们帮忙 我这有两个 controllers,一个是 tomcats_controller.rb,一个 machines_controller.rb tomcat 新增页面中有一个下拉列表,需要选择属于哪个 machines(machines 表) 这里我无法获取 machines 的表内容 def new @tomcat = Tomcat.new @ip=Tomcat.find_by_sql("select * from machines");######
respond_to do |format| format.html # new.html.erb format.json { render json: @tomcat } end end
这里也就无法赋值
<%= f.label :tomcat_status %>