from_session_value

from_session_value(value) Class Public methods

authenticate_with_http_digest

authenticate_with_http_digest(realm = "Application", &password_procedure) Instance Public methods Authenticate with HTTP Digest, returns true or false

find_by_sql

find_by_sql(sql, binds = []) Instance Public methods Executes a custom SQL query against your database and returns all the results. The results will be returned as an array with columns requested encapsulated as attributes of the model you call this method from. If you call Product.find_by_sql then the results will be returned in a Product object with the attributes you specified in the SQL query. If you call a complicated SQL query which spans multiple tables the columns specified

terabyte

terabyte() Instance Public methods Alias for: terabytes

instrument

instrument() Class Public methods

seed_loader

seed_loader() Instance Public methods

get_session

get_session(env, sid) Instance Public methods Get a session from the cache.

accessing_params_in_template

accessing_params_in_template() Instance Public methods

partial_collection_shorthand_with_locals

partial_collection_shorthand_with_locals() Instance Public methods

select

select(*fields) Instance Public methods Works in two unique ways. First: takes a block so it can be used just like Array#select. Model.all.select { |m| m.field == value } This will build an array of objects from the database for the scope, converting them into an array and iterating through them using Array#select. Second: Modifies the SELECT statement for the query so that only certain fields are retrieved: Model.select(:field) # => [#<Model field:value>] Although in th