Rails 一个 date_select helper 的问题

tassandar · 2012年04月14日 · 最后由 vkill 回复于 2012年04月14日 · 2835 次阅读

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

但是用

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


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

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

有 select_month select_year 这些 helper

需要 登录 后方可回复, 如果你还没有账号请 注册新账号