阅读背景:

使用一系列时间以增量填充选择,以及其他选项

来源:互联网 

Using Ruby on Rails, I'm filling a 'select' with times using a given increment, such as every 30 minutes. Currently I'm writing out all the possibilities in a YAML file, but i feel like there's a slicker way. I'm thinking I want to provide a start_time, an end_time, an increment, and currently just one more option called 'Closed' (think 'business_hours'). So, my select might display:Using Ruby on Rails, I'm filling a 'select' wit




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: