Rails 一个 date_select helper 的问题

tassandar · April 14, 2012 · Last by vkill replied at April 14, 2012 · 2835 hits

在做一个日期选择的页面, 希望是 select图片这样的。

但是用

date_select("user", "birthday", :order => [:year, :month, :day], :prompt => [:year => '请选择'])


之后无法产生中间的 年,月,日的分割提示字符串。

有没有什么方法来解决这个问题呢?

有 select_month select_year 这些 helper

You need to Sign in before reply, if you don't have an account, please Sign up first.