万年素人からHackerへの道

万年素人がHackerになれるまで殴り書きするぜ。

http://u2airsot.ninja-web.net/12_rails_ofc2/index.html


・日時
http://noranuko.air-nifty.com/system/rubyrails/index.html


module ApplicationHelper
  # 日本語日付選択
  def date_select_jp(object_name, method, options={ })
    options[:use_month_numbers] = true unless options[:use_month_numbers]
    t = date_select(object_name, method, options)
    if options[:discard_day]
      t.sub(/<\/select>(.+?)<\/select>/m, "</select>年\\1</select>月")
    else
      t.sub(/<\/select>(.+?)<\/select>(.+?)<\/select>/m, "</select>年\\1</select>月\\2</select>日")
    end
  end
end



http://d.hatena.ne.jp/yuum3/20080705/1215245926
http://wota.jp/ac/?date=20071110