Module: ActionView::Helpers::DateAndTimeHelper
- Defined in:
- lib/action_view/helpers/date_and_time_helper.rb
Constant Summary collapse
- DEFAULT_PREFIX =
'object'.freeze
- POSITION =
{ :date => 1, :time => 2 }.freeze
Instance Method Summary collapse
Instance Method Details
#date_and_time_field(object_name, method, options = {}, html_options = {}) ⇒ Object
7 8 9 |
# File 'lib/action_view/helpers/date_and_time_helper.rb', line 7 def date_and_time_field(object_name, method, = {}, = {}) InstanceTag.new(object_name, method, self, .delete(:object)).to_date_and_time_field_tag(, ).html_safe end |