Module: AwesomeForm

Extended by:
ActiveSupport::Autoload
Defined in:
lib/awesome_form.rb,
lib/awesome_form/engine.rb,
lib/awesome_form/version.rb,
lib/awesome_form/form_builder.rb,
lib/awesome_form/methods/inputs.rb,
lib/awesome_form/methods/labels.rb,
lib/awesome_form/methods/naming.rb,
lib/awesome_form/methods/actions.rb,
lib/awesome_form/methods/rendering.rb,
lib/awesome_form/methods/attributes.rb,
lib/awesome_form/action_view_extensions/form_helper.rb

Defined Under Namespace

Modules: ActionViewExtensions, Methods Classes: Engine, FormBuilder

Constant Summary collapse

VERSION =
"0.0.1"
@@theme =
:default_theme
@@default_actions =
[:submit]
@@excluded_columns =
[:created_at, :updated_at]
@@default_associations =
[:belongs_to, :has_many]
{
  input: %w(accept alt autocomplete autofocus checked dirname disabled form formaction formenctype formmethod formnovalidate formtarget height list max maxlength min multiple name pattern placeholder readonly required size src step type value width).map(&:to_sym),
  textarea: %w(autocomplete autofocus cols dirname disabled form maxlength name placeholder readonly required rows wrap).map(&:to_sym),
  select: %w(autofocus disabled form multiple name required size).map(&:to_sym)
}

Class Method Summary collapse

Class Method Details

.setup {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (AwesomeForm)

    the object that the method was called on



32
33
34
# File 'lib/awesome_form.rb', line 32

def self.setup
  yield self
end