Module: Hugh::Helpers
- Defined in:
- lib/hugh/helpers.rb
Defined Under Namespace
Modules: FormBuilder, InstanceTag
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.included(base) ⇒ Object
3
4
5
6
|
# File 'lib/hugh/helpers.rb', line 3
def self.included(base)
::ActionView::Helpers::InstanceTag.send :include, InstanceTag
::ActionView::Helpers::FormBuilder.send :include, FormBuilder
end
|
Instance Method Details
#hue_picker(object, method, options = {}, html_options = {}) ⇒ Object
8
9
10
11
|
# File 'lib/hugh/helpers.rb', line 8
def hue_picker(object, method, options = {}, html_options = {})
instance_tag = ::ActionView::Helpers::InstanceTag.new(object, method, self, options.delete(:object))
instance_tag.to_hue_picker_tag(html_options) + javascript_tag(instance_tag.to_hue_picker_js(html_options))
end
|