Module: Hugh::Helpers::InstanceTag
- Defined in:
- lib/hugh/helpers.rb
Instance Method Summary collapse
Instance Method Details
#to_hue_picker_js(html_options) ⇒ Object
21 22 23 24 25 |
# File 'lib/hugh/helpers.rb', line 21 def to_hue_picker_js() = .stringify_keys add_default_name_and_id() "#{tag_id}_hue_picker = new Hugh('#{tag_id}')" end |
#to_hue_picker_tag(html_options) ⇒ Object
14 15 16 17 18 19 |
# File 'lib/hugh/helpers.rb', line 14 def to_hue_picker_tag() = .stringify_keys add_default_name_and_id() value = value(object) hidden_field_tag('', value, ) end |