DateHelperJa ãã©ã°ã¤ã³å ¬é
趣æ¨
ActionView::Helpers::DateHelper ãæ¥æ¬èªåãããDateFormJa ããã©ã°ã¤ã³ã¨ãã¦ã¤ã³ã¹ãã¼ã«ããã ãã§ãdatetime_select,date_selectãæ¥æ¬èªè¡¨ç¤ºãããã
Example: datetime_select("model", "attr") # =>"2007å¹´ 4æ 29æ¥ 13æ 14å"
ãªãªã¸ãã«ã®æ¯ãèãã«æ»ãããã¨ãã¯ã:use_jp_xxx (xxx = year, month, day, hour, minute, second) ã¨ãããªãã·ã§ã³ã false ã«è¨å®ããã
Example: datetime_select("model", "attr", :use_jp_hour => false, :use_jp_minute => false) # => "2007å¹´ 4æ 29æ¥ 13:14"
ã¤ã³ã¹ãã¼ã«
% cd $RAILS_ROOT % ruby script/plugin install http://softculture.com/rails/plugins/date_helper_ja/
è¨å®ä¸è¦ã§ä¾¿å©ã ã¨æãã