Module: HumpyardForm
- Defined in:
- lib/humpyard_form.rb,
lib/humpyard_form/config.rb,
lib/humpyard_form/engine.rb,
lib/humpyard_form/form_builder.rb,
lib/humpyard_form/action_controller/base.rb,
lib/humpyard_form/action_view/form_helper.rb
Overview
Welcome to HumpyardForm
Defined Under Namespace
Modules: ActionController, ActionView Classes: Config, Engine, FormBuilder
Constant Summary collapse
- VERSION =
This is the actual version of the HumpyardForm gem
::File.read(::File.join(::File.dirname(__FILE__), "..", "VERSION")).strip
Class Method Summary collapse
-
.base_directory ⇒ Object
This is the path to the HumpyardForm gem’s root directory.
-
.config ⇒ Object
To access the actual configuration of your HumpyardForm, you can call this.
-
.configure(&block) ⇒ Object
Configure the HumpyardForm See HumpyardForm::Config.configure for details.
-
.lib_directory ⇒ Object
This is the path to the HumpyardForm gem’s lib directory.
-
.load(options = {}) ⇒ Object
:nodoc:.
Class Method Details
.base_directory ⇒ Object
This is the path to the HumpyardForm gem’s root directory
13 14 15 |
# File 'lib/humpyard_form.rb', line 13 def base_directory ::File.(::File.join(::File.dirname(__FILE__), '..')) end |
.config ⇒ Object
To access the actual configuration of your HumpyardForm, you can call this.
An example would be HumpyardForm.config.www_prefix = 'cms/:locale/'
See HumpyardForm::Config for configuration options.
30 31 32 |
# File 'lib/humpyard_form.rb', line 30 def config @config ||= HumpyardForm::Config.new end |
.configure(&block) ⇒ Object
Configure the HumpyardForm See HumpyardForm::Config.configure for details
36 37 38 |
# File 'lib/humpyard_form.rb', line 36 def configure(&block) config.configure(&block) end |
.lib_directory ⇒ Object
This is the path to the HumpyardForm gem’s lib directory
18 19 20 |
# File 'lib/humpyard_form.rb', line 18 def lib_directory ::File.(::File.join(::File.dirname(__FILE__))) end |
.load(options = {}) ⇒ Object
:nodoc:
8 9 10 |
# File 'lib/humpyard_form.rb', line 8 def self.load = {} #:nodoc: require ::File.('../humpyard_form/rake_tasks', __FILE__) end |