This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# modified from Bruno Miranda's original found here: http://brunomiranda.com/past/2007/6/2/displaying_12_hour_style_time_select/ | |
# usage: <%= form.time_select :the_time, { :twelve_hour => true } %> | |
module ActionView | |
module Helpers | |
class DateTimeSelector | |
def select_hour_with_twelve_hour_time | |
datetime = @datetime | |
options = @options |
NewerOlder