Files

Class Index [+]

Quicksearch

Ubiquo::RequiredFields::FormTagHelper::InstanceMethods

Public Instance Methods

label_tag_with_asterisk(name, text = nil, options = {}) click to toggle source

appends an asterisk to the text if needed

    # File vendor/plugins/ubiquo_core/lib/ubiquo/required_fields/form_tag_helper.rb, line 13
13:         def label_tag_with_asterisk(name, text = nil, options = {})
14:           if !text.nil? && options["append_asterisk"] == true
15:             span_class = Ubiquo::Config.get(:required_field_class)
16:             text += "<span class= #{span_class} > * </span>"
17:           end
18:           label_tag_without_asterisk(name, text, options)
19:         end

Disabled; run with $DEBUG to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.