Module | Cms::FormTagHelper |
In: |
app/helpers/cms/form_tag_helper.rb
|
# File app/helpers/cms/form_tag_helper.rb, line 10 10: def drop_down(object, method, choices, options = {}, html_options = {}) 11: select(object, method, choices, options, html_options) 12: end
A drop-down is just a specialized HTML select
# File app/helpers/cms/form_tag_helper.rb, line 6 6: def drop_down_tag(name, option_tags = nil, options = {}) 7: select_tag(name, option_tags, options) 8: end
# File app/helpers/cms/form_tag_helper.rb, line 27 27: def text_editor(object_name, method, options = {}) 28: text_area(object_name, method, text_editor_options(options)) 29: end
A text editor is an HTML WYSIWYG editor. The result of this will be a div with a select and a textarea in it.
# File app/helpers/cms/form_tag_helper.rb, line 17 17: def text_editor_options(options={}) 18: opts = options.dup 19: (opts[:class] ||= "") << " editor" 20: opts 21: end