hello_world_file

hello_world_file() Instance Public methods

connection

connection() Instance Public methods Retrieve the connection associated with the current thread, or call checkout to obtain one if necessary. connection can be called any number of times; the connection is held in a hash keyed by the thread id.

instance_method_already_implemented?

instance_method_already_implemented?(method_name) Instance Public methods Raises a ActiveRecord::DangerousAttributeError exception when an Active Record method is defined in the model, otherwise false. class Person < ActiveRecord::Base def save 'already defined by Active Record' end end Person.instance_method_already_implemented?(:save) # => ActiveRecord::DangerousAttributeError: save is defined by ActiveRecord Person.instance_method_already_implemented?(:name) # =&

hidden_field

hidden_field(method, options = {}) Instance Public methods Returns a hidden input tag tailored for accessing a specified attribute (identified by method) on an object assigned to the template (identified by object). Additional options on the input tag can be passed as a hash with options. These options will be tagged onto the HTML as an HTML element attribute as in the example shown. Examples hidden_field(:signup, :pass_confirm) # => <input type="hidden" id="signup_pass_confi

_dump_without_zone

_dump_without_zone(*args) Instance Public methods Alias for: _dump

test_quote_bigdecimal

test_quote_bigdecimal() Instance Public methods

method_missing

method_missing(selector, *args, &block) Instance Public methods ROUTES TODO: These assertions should really work in an integration context

set

set(key, value) Instance Public methods Set messages for key to value. person.errors.get(:name) # => ["cannot be nil"] person.errors.set(:name, ["can't be nil"]) person.errors.get(:name) # => ["can't be nil"]

table

table() Instance Public methods

execute

execute(sql, name = nil) Instance Public methods Executes the SQL statement in the context of this connection.