start 2

start() Instance Public methods

environment

environment(data=nil, options={}, &block) Instance Public methods Adds a line inside the Application class for config/application.rb. If options :env is specified, the line is appended to the corresponding file in config/environments. environment do "config.autoload_paths += %W(#{config.root}/extras)" end environment(nil, env: "development") do "config.autoload_paths += %W(#{config.root}/extras)" end application

reset!

reset!() Instance Public methods

accepts_nested_attributes_for

accepts_nested_attributes_for(*attr_names) Instance Public methods Defines an attributes writer for the specified association(s). Supported options: :allow_destroy If true, destroys any members from the attributes hash with a _destroy key and a value that evaluates to true (eg. 1, '1', true, or 'true'). This option is off by default. :reject_if Allows you to specify a Proc or a Symbol pointing to a method that checks whether a record should be built for a certain attribute has

midnight

midnight() Instance Public methods Alias for: beginning_of_day

path

path() Instance Public methods Shortcut for tempfile.path.

partial_with_hash_object

partial_with_hash_object() Instance Public methods

substitute_at

substitute_at(column, index) Instance Public methods

eager_load

eager_load(*args) Instance Public methods Forces eager loading by performing a LEFT OUTER JOIN on args: User.eager_load(:posts) => SELECT "users"."id" AS t0_r0, "users"."name" AS t0_r1, ... FROM "users" LEFT OUTER JOIN "posts" ON "posts"."user_id" = "users"."id"

camelize

camelize(first_letter = :upper) Instance Public methods By default, camelize converts strings to UpperCamelCase. If the argument to camelize is set to :lower then camelize produces lowerCamelCase. camelize will also convert '/' to '::' which is useful for converting paths to namespaces. 'active_record'.camelize # => "ActiveRecord" 'active_record'.camelize(:lower) # => "activeRecord" 'active_record/errors'.camelize # => "ActiveRecord::Errors" '