get_frame

get_frame(&b) Instance Public methods

accepts_nested_attributes_for

accepts_nested_attributes_for(*attr_names) Instance Public methods Defines an attributes writer for the specified association(s). Supported options: :allow_destroy If true, destroys any members from the attributes hash with a _destroy key and a value that evaluates to true (eg. 1, '1', true, or 'true'). This option is off by default. :reject_if Allows you to specify a Proc or a Symbol pointing to a method that checks whether a record should be built for a certain attribute has

vsatisfies

vsatisfies(version1, version2) Instance Public methods

includes

includes(*args) Instance Public methods Specify relationships to be included in the result set. For example: users = User.includes(:address) users.each do |user| user.address.city end allows you to access the address attribute of the User model without firing an additional query. This will often result in a performance improvement over a simple join. You can also specify multiple relationships, like this: users = User.includes(:address, :friends) Loading nested relationships is

concat

concat(*records) Instance Public methods Add one or more records to the collection by setting their foreign keys to the association's primary key. Since << flattens its argument list and inserts each record, push and concat behave identically. Returns self so method calls may be chained. class Person < ActiveRecord::Base has_many :pets end person.pets.size # => 0 person.pets.concat(Pet.new(name: 'Fancy-Fancy')) person.pets.concat(Pet.new(name: 'Spook'), Pet.new(name:

index_by

index_by() Instance Public methods Convert an enumerable to a hash. people.index_by(&:login) => { "nextangle" => <Person ...>, "chade-" => <Person ...>, ...} people.index_by { |person| "#{person.first_name} #{person.last_name}" } => { "Chade- Fowlersburg-e" => <Person ...>, "David Heinemeier Hansson" => <Person ...>, ...}

show_results

show_results() Instance Public methods

ancestor?

ancestor?(des) Instance Public methods Alias for: isancestor

style 2

style(*args) Class Public methods

write_element

write_element( node, output ) Instance Protected methods