color_field

color_field(object_name, method, options = {}) Instance Public methods Returns a #text_field of type âcolorâ. color_field("car", "color") # => <input id="car_color" name="car[color]" type="color" value="#000000" />

gem_version

gem_version() Class Public methods Returns the version of the currently loaded ActiveModel as a Gem::Version

gem_version

gem_version() Class Public methods Returns the version of the currently loaded ActionMailer as a Gem::Version

engine?

engine?() Instance Public methods

new

new(attributes = nil, options = {}) Class Public methods New objects can be instantiated as either empty (pass no construction parameter) or pre-set with attributes but not yet saved (pass a hash with key names matching the associated table column names). In both instances, valid attribute keys are determined by the column names of the associated table â hence you can't have attributes that aren't part of the table columns. Example: # Instantiates a single new object User.new(first

modules_for_helpers

modules_for_helpers(args) Instance Public methods Returns a list of modules, normalized from the acceptable kinds of helpers with the following behavior: String or Symbol :FooBar or âFooBarâ becomes âfoo_bar_helperâ, and âfoo_bar_helper.rbâ is loaded using require_dependency. Module No further processing After loading the appropriate files, the corresponding modules are returned. Parameters args - An array of helpers Returns Array - A normalized list of modules for

try_to_load_dependency

try_to_load_dependency(file_name) Instance Public methods

setup

setup() Instance Public methods

respond_to?

respond_to?(method, include_private = false) Instance Public methods

rename_key

rename_key(key, options = {}) Instance Public methods