Tag: Rails/トラブルシューティング
gem 'therubyracer', '0.12.1' gem 'libv8', '3.16.14.7'
gem 'therubyracer', '0.12.1' gem 'libv8', '3.16.14.11'
Uncaught exception: Specified 'mysql2' for database adapter, but the gem is not loaded. Add `gem 'mysql2'` to your Gemfile
gem 'mysql2', '~> 0.3.18'
def initialize super # 初期化処理 end
config.serve_static_files = true config.assets.compile = true
module Mymod require 'date' RubyDate = Date Date = nil class ClassA class Date < Mymod::ClassA def initialize today = RubyDate.today # get today's date from Ruby's Date class puts "Today's date is #{today.to_s}" end end end end Mymod::ClassA::Date.new # => Today's date is 2014-01-05