`

rails 日期(date_select)

阅读更多
日期选择框:
<%= date_select :variable, :attribute, options %>
<%= datetime_select :variable, :attribute, options %>
实例:
date_select "post", "attribute"
date_select "user", "birthday", :start_year => 1910
date_select "user", "cc_date", :start_year => 2005,
                               :use_month_numbers => true,
                               :discard_day => true,
                              rder => [:year, :month]

datetime_select "post", "attribute"

<%= date_select("","work_month",:use_month_numbers => true,:order=>[:year,:month]) %>

http://kobesearch.cpan.org/htdocs/HTML-TagHelper/HTML/TagHelper.pm.html
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics