Module: MustacheForm
- Defined in:
- lib/mustache_form/form_helper.rb,
lib/mustache_form.rb,
lib/mustache_form/railtie.rb,
lib/mustache_form/version.rb,
lib/generators/mustache_form/install_generator.rb
Overview
standard ruby form_for to build our form and then have Mustache render each key value pair
Defined Under Namespace
Modules: FormHelper, Generators Classes: FormedMustache, Railtie
Constant Summary collapse
- VERSION =
"0.2.3"- @@configured =
false- @@error_method =
false
Class Method Summary collapse
- .configured? ⇒ Boolean
-
.setup {|_self| ... } ⇒ Object
Default way to setup MustacheForm.
Class Method Details
.configured? ⇒ Boolean
10 11 12 |
# File 'lib/mustache_form.rb', line 10 def self.configured? @@configured end |
.setup {|_self| ... } ⇒ Object
Default way to setup MustacheForm. Run rails generate mustache_form:install to create a fresh initializer with all configuration values.
20 21 22 23 |
# File 'lib/mustache_form.rb', line 20 def self.setup @@configured = true yield self if block_given? end |