image_submit_tag

image_submit_tag(source, options = {}) Instance Public methods Displays an image which when clicked will submit the form. source is passed to ActionView::Helpers::AssetUrlHelper#path_to_image Options :data - This option can be used to add custom data attributes. :disabled - If set to true, the user will not be able to use this input. Any other key creates standard HTML options for the tag. Data attributes confirm: 'question?' - This will add a JavaScript confirm prompt wit

css_select

css_select(*args) Instance Public methods Select and return all matching elements. If called with a single argument, uses that argument as a selector to match all elements of the current page. Returns an empty array if no match is found. If called with two arguments, uses the first argument as the base element and the second argument as the selector. Attempts to match the base element and any of its children. Returns an empty array if no match is found. The selector may be a CSS se

phone_field

phone_field(object_name, method, options = {}) Instance Public methods aliases #telephone_field telephone_field

number_to_currency

number_to_currency(number, options = {}) Instance Public methods Formats a number into a currency string (e.g., $13.65). You can customize the format in the options hash. Options :locale - Sets the locale to be used for formatting (defaults to current locale). :precision - Sets the level of precision (defaults to 2). :unit - Sets the denomination of the currency (defaults to â$â). :separator - Sets the separator between the units (defaults to â.â). :delimiter - Sets the th

fetch_multi

fetch_multi(*names) Instance Public methods Fetches data from the cache, using the given keys. If there is data in the cache with the given keys, then that data is returned. Otherwise, the supplied block is called for each key for which there was no data, and the result will be written to the cache and returned. Options are passed to the underlying cache implementation. Returns an array with the data for each of the names. For example: cache.write("bim", "bam") cache.fetch_multi("b

_store_accessors_module

_store_accessors_module() Instance Public methods

new

new() Class Public methods

next_migration_number

next_migration_number(number) Instance Public methods Determines the version number of the next migration.

new

new() Class Public methods

adapter_name

adapter_name() Instance Public methods Returns 'PostgreSQL' as adapter name for identification purposes.