maeshimaの日記

メモ書きです

今週のrailscasts

先週のformtasticの続き

Railscasts - Formtastic Part 2

  • has_many :hoge :through => :fuga なモデルにも対応
  • 必須項目に*がつけられる。手動で管理する方法と下記のプラグインを使ってvalidates_presense_ofの有無をチェックして自動で*をつける方法がある。
  • 各項目のフォームの下にヒント(説明文)をつけられる

redinger's validation_reflection at master - GitHub