1,时间的格式化输出 t = Time.now # to get day, month and year with century # also hour, minute and second puts t.strftime("%d/%m/%Y %H:%M:%S") # You can use the upper case A and B to get the full # name of the weekday and month, respectively puts t.strftime("%A" ...
1,设置NLS_LANG   export NLS_LANG=american_america.AL32UTF8 2,在rails中database.yml的设置   development:   adapter: oracle   database: XXX.XXX.XXX.XXX/service_name   username: your_name   password: your_password 3,测试oracle是否连通:   ruby -r oci8 -e  "OCI8.new( 'your_n ...
1,遍历当前目录require 'find' Find.find('../../') do |f| type = case when File.file?(f) "F" when File.directory?(f) "D" else "?" end puts "#{type}: #{f}" end ...
minstrel
搜索本博客
最近加入圈子
存档
最新评论