Parent

Methods

Files

Class/Module Index [+]

Quicksearch

SimpleForm::Wrappers::Root

`Root` is the root wrapper for all components. It is special cased to always have a namespace and to add special html classes.

Attributes

options[R]

Public Instance Methods

find(name) click to toggle source

Provide a fallback if name cannot be found.

# File lib/simple_form/wrappers/root.rb, line 19
def find(name)
  super || SimpleForm::Wrappers::Many.new(name, [name])
end
render(input) click to toggle source
# File lib/simple_form/wrappers/root.rb, line 13
def render(input)
  input.options.reverse_merge!(@options)
  super
end

Public Class Methods

new(*args) click to toggle source
# File lib/simple_form/wrappers/root.rb, line 8
def initialize(*args)
  super(:wrapper, *args)
  @options = @defaults.except(:tag, :class, :error_class, :hint_class)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.