===

fix == other â true or false Instance Public methods Return true if fix equals other numerically. 1 == 2 #=> false 1 == 1.0 #=> true

submit

submit(value=nil, options={}) Instance Public methods Add the submit button for the given form. When no value is given, it checks if the object is a new resource or not to create the proper label: <%= form_for @post do |f| %> <%= f.submit %> <% end %> In the example above, if @post is a new record, it will use âCreate Postâ as submit button label, otherwise, it uses âUpdate Postâ. Those labels can be customized using I18n, under the helpers.submit key and accept

info

info(message)info(progname, &block) Instance Public methods Log an INFO message. message The message to log; does not need to be a String. progname In the block form, this is the progname to use in the log message. The default can be set with progname=. block Evaluates to the message to log. This is not evaluated unless the logger's level is sufficient to log the message. This allows you to create potentially expensive logging messages that are only called when the

new

new(name, keys=nil) Class Public methods Also aliased as: _new

run

run() Instance Public methods Run the Rake application. The run method performs the following three steps: Initialize the command line options (init). Define the tasks (load_rakefile). Run the top level tasks (top_level). If you wish to build a custom rake command, you should call init on your application. Then define any tasks. Finally, call top_level to run your top level tasks.

thread_list

thread_list(num) Class Public methods

set_max_block_time

set_max_block_time(p1) Class Public methods

ln

ln(src, dest, options = {}) Class Public methods Options: force noop verbose ln(old, new, options = {}) Creates a hard link new which points to old. If new already exists and it is a directory, creates a link new/old. If new already exists and it is not a directory, raises Errno::EEXIST. But if :force option is set, overwrite new. FileUtils.ln 'gcc', 'cc', :verbose => true FileUtils.ln '/usr/bin/emacs21', '/usr/bin/emacs' ln(list, destdir, options = {}) Creates several hard lin

find_in_batches

find_in_batches(options = {}) Instance Public methods Yields each batch of records that was found by the find options as an array. Person.where("age > 21").find_in_batches do |group| sleep(50) # Make sure it doesn't get too crowded in there! group.each { |person| person.party_all_night! } end If you do not provide a block to find_in_batches, it will return an Enumerator for chaining with other methods: Person.find_in_batches.with_index do |group, batch| puts "Processing g

calculate

calculate(operation, column_name, options = {}) Instance Public methods This calculates aggregate values in the given column. Methods for count, sum, average, minimum, and maximum have been added as shortcuts. There are two basic forms of output: * Single aggregate value: The single value is type cast to Fixnum for COUNT, Float for AVG, and the given column's type for everything else. * Grouped values: This returns an ordered hash of the values and groups them. It takes either