日本語問題
RoR + MySQL の時の日本語対応
config/environment.rb の途中
ActiveRecord::Base.establish_connection
の下に
ActiveRecord::Base.connection.execute("set names utf8")
を入れる
MySQLはutf8にしておく
RoR + MySQL の時の日本語対応
config/environment.rb の途中
ActiveRecord::Base.establish_connection
の下に
ActiveRecord::Base.connection.execute("set names utf8")
を入れる
MySQLはutf8にしておく