usec

usec() Instance Public methods Returns the fraction of a second as microseconds

supports_index_sort_order?

supports_index_sort_order?() Instance Public methods

email_field_tag

email_field_tag(name, value = nil, options = {}) Instance Public methods Creates a text field of type âemailâ. Options Accepts the same options as text_field_tag.

after_teardown

after_teardown() Instance Public methods

format=

format=(extension) Instance Public methods Sets the format by string extension, which can be used to force custom formats that are not controlled by the extension. class ApplicationController < ActionController::Base before_action :adjust_format_for_iphone private def adjust_format_for_iphone request.format = :iphone if request.env["HTTP_USER_AGENT"][/iPhone/] end end

new

new() Class Public methods

all

all(*args, &block) Instance Public methods Alias for: any

new

new() Class Public methods

all

all() Instance Public methods Returns an ActiveRecord::Relation scope object. posts = Post.all posts.size # Fires "select count(*) from posts" and returns the count posts.each {|p| puts p.name } # Fires "select * from posts" and loads post objects fruits = Fruit.all fruits = fruits.where(color: 'red') if options[:red_only] fruits = fruits.limit(10) if limited? You can define a scope that applies to all finders using ActiveRecord::Base.default_scope.

supports_streaming?

supports_streaming?() Instance Public methods Returns if the underlying handler supports streaming. If so, a streaming buffer may be passed when it start rendering.