==

==(other) Instance Public methods

number_to_phone

number_to_phone(number, options = {}) Instance Public methods Formats a number into a US phone number (e.g., (555) 123-9876). You can customize the format in the options hash. Options :area_code - Adds parentheses around the area code. :delimiter - Specifies the delimiter to use (defaults to â-â). :extension - Specifies an extension to add to the end of the generated number. :country_code - Sets the country code for the phone number. :raise - If true, raises InvalidNumberE

grouped_collection_select

grouped_collection_select(method, collection, group_method, group_label_method, option_key_method, option_value_method, options = {}, html_options = {}) Instance Public methods Wraps ActionView::Helpers::FormOptionsHelper#grouped_collection_select for form builders: <%= form_for @city do |f| %> <%= f.grouped_collection_select :country_id, @continents, :countries, :name, :id, :name %> <%= f.submit %> <% end %> Please refer to the documentation of the base

connection_handler=

connection_handler=(handler) Class Public methods

joins_per_query

joins_per_query() Instance Public methods Returns maximum number of joins in a single query.

create_all

create_all() Instance Public methods

fresh_when

fresh_when(record_or_options, additional_options = {}) Instance Public methods Sets the etag, last_modified, or both on the response and renders a 304 Not Modified response if the request is already fresh. Parameters: :etag. :last_modified. :public By default the Cache-Control header is private, set this to true if you want your application to be cachable by other devices (proxy caches). Example: def show @article = Article.find(params[:id]) fresh_when(etag: @article, l

deep_dup

deep_dup() Instance Public methods Returns a deep copy of object if it's duplicable. If it's not duplicable, returns self. object = Object.new dup = object.deep_dup dup.instance_variable_set(:@a, 1) object.instance_variable_defined?(:@a) # => false dup.instance_variable_defined?(:@a) # => true

attribute_method?

attribute_method?(attribute) Instance Public methods Returns true if attribute is an attribute method and table exists, false otherwise. class Person < ActiveRecord::Base end Person.attribute_method?('name') # => true Person.attribute_method?(:age=) # => true Person.attribute_method?(:nothing) # => false

initializers_for

initializers_for(binding) Instance Public methods