create_current

create_current(environment = env) Instance Public methods

new

new(message, original_exception = nil) Class Public methods

load_console

load_console(app=self) Instance Public methods Load console and invoke the registered hooks. Check Rails::Railtie.console for more info.

gem_version

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

belongs_to

belongs_to(*args) Instance Public methods Alias for: references

delete

delete(*records) Instance Public methods Deletes the records supplied and removes them from the collection. For has_many associations, the deletion is done according to the strategy specified by the :dependent option. Returns an array with the deleted records. If no :dependent option is given, then it will follow the default strategy. The default strategy is :nullify. This sets the foreign keys to NULL. For, has_many :through, the default strategy is delete_all. class Person < A

insert_sql

insert_sql(sql, name = nil, pk = nil, id_value = nil, sequence_name = nil) Instance Public methods Executes an INSERT query and returns the new record's ID

field_set_tag

field_set_tag(legend = nil, options = nil, &block) Instance Public methods Creates a field set for grouping HTML form elements. legend will become the fieldset's title (optional as per W3C). options accept the same values as tag. Examples <%= field_set_tag do %> <p><%= text_field_tag 'name' %></p> <% end %> # => <fieldset><p><input id="name" name="name" type="text" /></p></fieldset> <%= field_set_tag 'Your det

head_with_string_status

head_with_string_status() Instance Public methods

validates_size_of

validates_size_of(*attr_names) Instance Public methods Alias for: validates_length_of