bootstrap-datepicker-railsで特定の言語のファイルのみを読み込む
applicetion.jsにこう書くと、
//= require bootstrap-datepicker/
こんな風に60言語分くらいの全てのファイルを読み込んで重い。
こんな風にcoreと必要な言語のファイルを指定すると読み込むファイルを絞り込むことができる。
//= require bootstrap-datepicker/core
//= require bootstrap-datepicker/locales/bootstrap-datepicker.ja.js
play,ebeanでorを書く
http://cerulean.hatenablog.com/entry/2014/05/08/151822
.where().or(Expr.eq("title", title), Expr.eq("name", name))
rails production
bundle exec rake assets:precompile RAILS_ENV=production