call

call(env) Instance Public methods

exec_delete

exec_delete(sql, name, binds) Instance Public methods Also aliased as: exec_update

app

app(create=false) Instance Public methods reference the global âappâ instance, created on demand. To recreate the instance, pass a non-false value as the parameter.

time_field

time_field(object_name, method, options = {}) Instance Public methods Returns a #text_field of type âtimeâ. The default value is generated by trying to call strftime with â%T.%Lâ on the objects's value. It is still possible to override that by passing the âvalueâ option. Options Accepts same options as time_field_tag Example time_field("task", "started_at") # => <input id="task_started_at" name="task[started_at]" type="time" />

type

type() Instance Public methods

new

new(options = {}) Class Public methods

composed_of

composed_of(part_id, options = {}) Instance Public methods Adds reader and writer methods for manipulating a value object: composed_of :address adds address and address=(new_address) methods. Options are: :class_name - Specifies the class name of the association. Use it only if that name can't be inferred from the part id. So composed_of :address will by default be linked to the Address class, but if the real class name is CompanyAddress, you'll have to specify it with this option

increment

increment(name, amount = 1, options = nil) Instance Public methods Increment an integer value in the cache. Options are passed to the underlying cache implementation. All implementations may not support this method.

layout_test_with_different_layout

layout_test_with_different_layout() Instance Public methods

optional_port

optional_port() Instance Public methods Returns a number port suffix like 8080 if the port number of this request is not the default HTTP port 80 or HTTPS port 443.