(Rails3.2.12)
Date Picker を英語で表示の手順
Gemfile
group :assets do gem 'sass-rails', '~> 3.2.3' gem 'coffee-rails', '~> 3.2.1' # See https://github.com/sstephenson/execjs#readme for more supported runtimes # gem 'therubyracer', :platforms => :ruby gem 'uglifier', '>= 1.0.3' gem 'jquery-ui-rails' end
app/assets/javascripts/application.js
//= require jquery //= require jquery_ujs //= require jquery.ui.datepicker //= require_tree .
app/assets/javascripts/hoge.js.coffee
jQuery -> $('#hoge_published_on').datepicker(dateFormat: 'yy-mm-dd')
app/assets/stylesheets/application.css
*= require jquery.ui.datepicker *= require_self *= require_tree .
app/assets/javascripts/application.js
//= require jquery //= require jquery_ujs //= require jquery.ui.all //= require jquery.ui.datepicker-ja //= require_tree .