test_add_path_gem

test_add_path_gem() Instance Public methods

fetch

fetch(key, *extras) Instance Public methods Same as Hash#fetch where the key passed as argument can be either a string or a symbol: counters = ActiveSupport::HashWithIndifferentAccess.new counters[:foo] = 1 counters.fetch('foo') # => 1 counters.fetch(:bar, 0) # => 0 counters.fetch(:bar) { |key| 0 } # => 0 counters.fetch(:zoo) # => KeyError: key not found: "zoo"

new

new(id = nil, post_id = nil) Class Public methods

button_tag

button_tag(content_or_options = nil, options = nil, &block) Instance Public methods Creates a button element that defines a submit button, resetbutton or a generic button which can be used in JavaScript, for example. You can use the button tag as a regular submit tag but it isn't supported in legacy browsers. However, the button tag allows richer labels such as images and emphasis, so this helper will also accept a block. Options :data - This option can be used to add custom d

filename

filename() Class Public methods Returns the filename for the data file for this version.

remove_column

remove_column(table_name, column_name, type = nil, options = {}) Instance Public methods Removes the column from the table definition. remove_column(:suppliers, :qualification) The type and options parameters will be ignored if present. It can be helpful to provide these in a migration's change method so it can be reverted. In that case, type and options will be used by add_column.

new

new(name, context, options, &block) Class Public methods

verify_default_timezone_config

verify_default_timezone_config() Instance Public methods

type

type() Instance Public methods

resources

resources(*resources, &block) Instance Public methods In Rails, a resourceful route provides a mapping between HTTP verbs and URLs and controller actions. By convention, each action also maps to particular CRUD operations in a database. A single entry in the routing file, such as resources :photos creates seven different routes in your application, all mapping to the Photos controller: GET /photos GET /photos/new POST /photos GET /photos/:id GET /p