clear_query_cache

clear_query_cache() Instance Public methods Clears the query cache. One reason you may wish to call this method explicitly is between queries that ask the database to randomize results. Otherwise the cache would see the same SQL query and repeatedly return the same result each time, silently undermining the randomness you were expecting.

in_clause_length

in_clause_length() Instance Public methods Returns the maximum number of elements in an IN (x,y,z) clause. nil means no limit.

call

call(env) Class Public methods Makes the controller a Rack endpoint that runs the action in the given env's action_dispatch.request.path_parameters key.

save

save() Instance Public methods POST create

cookies

cookies() Instance Public methods Returns the response cookies, converted to a Hash of (name => value) pairs assert_equal 'AuthorOfNewPage', r.cookies['author']

encode!

encode!() Instance Public methods This method is responsible for properly setting the encoding of the source. Until this point, we assume that the source is BINARY data. If no additional information is supplied, we assume the encoding is the same as Encoding.default_external. The user can also specify the encoding via a comment on the first line of the template (# encoding: NAME-OF-ENCODING). This will work with any template engine, as we process out the encoding comment before pas

string_to_json

string_to_json(string) Instance Public methods

column_exists?

column_exists?(column_name, type = nil, options = {}) Instance Public methods Checks to see if a column exists. See ActiveRecord::ConnectionAdapters::SchemaStatements#column_exists?

verify_and_upgrade_legacy_signed_message

verify_and_upgrade_legacy_signed_message(name, signed_message) Instance Public methods

save!

save!(options={}) Instance Public methods Attempts to save the record just like #save but will raise a RecordInvalid exception instead of returning false if the record is not valid.