Module Cms::FormTagHelper
In: app/helpers/cms/form_tag_helper.rb

Methods

Public Instance methods

[Source]

    # 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

[Source]

   # 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

[Source]

    # 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.

[Source]

    # 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

[Source]

    # File app/helpers/cms/form_tag_helper.rb, line 23
23:     def text_editor_tag(name, content = nil, options = {})
24:       text_area_tag(name, content, text_editor_options(options))
25:     end

[Validate]