ruby --disable-gems -S update_rubygemsruby
三、NoMethodError: undefined method `spec' for nil:NilClassapp
An error occurred while installing carrierwave (0.11.0), and Bundler cannot continue.post
Make sure that `gem install carrierwave -v '0.11.0'` succeeds before bundling.gem ui
gem uninstall bundlercode
gem install bundler 就是安裝新版的bundlerget
四、.rvm/wrappers/ruby-2.1.5/rake nginx:clean nginx RELEASE=yesit
rake aborted!
LoadError: cannot load such file -- rubygems/builder
gem install passenger --version 4.0.0.rc6
五、%u轉化爲漢字的問題:
如:迷戀你娘 %u8FF7%u604B%u4F60%u5A18
s = "%u8FF7%u604B%u4F60%u5A18"
b = s.split("%u")-[""]
b.map{|t| [t.to_i(16)].pack("U")}.join
六、Bundler::GemspecError: Could not read gem at /XXX-1.8.2.gem. It may be corrupted.
刪除cache裏的文件,從新bundle install
七、國際化時若是有目錄,配置文件的寫法也是用目錄形式,好比: admin/user: