次のdate_selectヘルパーがあります。クラスを追加したいのですが、HTMLが生成されません。
<%= date_select :recipient, :birthday, :order => [:day, :month, :year], :start_year => 1920, :end_year => 2013, :class => "input-mini" %>
いくつかの解決策が示唆するように、私もハッシュでそれを試しましたが、構文エラーが発生します:
<%= date_select :recipient, :birthday, :order => [:day, :month, :year], :start_year => 1920, :end_year => 2013, {:class => "input-mini"} %>
いつ、どのようにハッシュでフォーマットするかを本当に理解しているのかわかりません。