Module: UnobtrusiveDatePicker::AssetTagHelper

Defined in:
lib/unobtrusive_date_picker.rb

Instance Method Summary collapse

Instance Method Details

#unobtrusive_datepicker_includes(options = {}) ⇒ Object

This will add the necessary <link> and <script> tags to include the necessary stylesheet and javascripts.



86
87
88
89
90
91
# File 'lib/unobtrusive_date_picker.rb', line 86

def unobtrusive_datepicker_includes(options = {})
  tags = []
  tags << javascript_include_tag('datepicker', options)
  tags << stylesheet_link_tag('datepicker', options)
  tags * "\n"
end