extend_message

extend_message(message) Instance Public methods can be over written to add additional error information.

new

new(message) Class 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

new

new(errors) Class Public methods

table_name=

table_name=(value) Instance Public methods Sets the table name explicitly. Example: class Project < ActiveRecord::Base self.table_name = "project" end You can also just define your own self.table_name method; see the documentation for ActiveRecord::Base#table_name.

table_name

table_name() Instance Public methods Guesses the table name (in forced lower-case) based on the name of the class in the inheritance hierarchy descending directly from ActiveRecord::Base. So if the hierarchy looks like: Reply < Message < ActiveRecord::Base, then Message is used to guess the table name even when called on Reply. The rules used to do the guess are handled by the Inflector class in Active Support, which knows almost all common English inflections. You can add ne

table_exists?

table_exists?() Instance Public methods Indicates whether the table associated with this class exists

sequence_name=

sequence_name=(value) Instance Public methods Sets the name of the sequence to use when generating ids to the given value, or (if the value is nil or false) to the value returned by the given block. This is required for Oracle and is useful for any database which relies on sequences for primary key generation. If a sequence name is not explicitly set when using Oracle or Firebird, it will default to the commonly used pattern of: #{table_name}_seq If a sequence name is not explicitl

sequence_name

sequence_name() Instance Public methods

reset_column_information

reset_column_information() Instance Public methods Resets all the cached information about columns, which will cause them to be reloaded on the next request. The most common usage pattern for this method is probably in a migration, when just after creating a table you want to populate it with some default values, eg: class CreateJobLevels < ActiveRecord::Migration def up create_table :job_levels do |t| t.integer :id t.string :name t.timestamps end