warn

warn(message = nil, callstack = nil) Instance Public methods Outputs a deprecation warning to the output configured by ActiveSupport::Deprecation.behavior. ActiveSupport::Deprecation.warn('something broke!') # => "DEPRECATION WARNING: something broke! (called from your_code.rb:1)"

message

message() Instance Public methods Returns the corresponding message for the current HTTP status code: response.status = 200 response.message # => "OK" response.status = 404 response.message # => "Not Found" status_message

empty?

empty?() Instance Public methods Returns true if the collection is empty. If the collection has been loaded it is equivalent to collection.size.zero?. If the collection has not been loaded, it is equivalent to collection.exists?. If the collection has not already been loaded and you are going to fetch the records anyway it is better to check collection.length.zero?. class Person < ActiveRecord::Base has_many :pets end person.pets.count # => 1 person.pets.empty? # => fa

local?

local?() Instance Public methods True if the request came from localhost, 127.0.0.1.

POST

POST() Instance Public methods Override Rack's #POST method to support indifferent access request_parameters

new

new(development = false) Class Public methods Creates a new DependencyList. If development is true, development dependencies will be included.

gzip_data

gzip_data(dat) Class Public methods

def_options

def_options(opt) Class Public methods

console

console(&blk) Instance Public methods Sends any console called in the instance of a new application up to the console method defined in Rails::Railtie.

inittoplevel

inittoplevel(ip, parent, title) Instance Public methods inittoplevel(ip, parent, title) 以ä¸ã®å¦çãã¾ã¨ãã¦è¡ã. 1. toplevel ã¦ã£ã¸ã§ããã使ãã. 2. ã³ã¼ã«ããã¯ãç»é²ããéåãç¨æã, toplevel ã¦ã£ã¸ã§ããã® <Destroy> ã¤ãã³ãã«ã³ã¼ã«ããã¯ãåé¤ããæç¶ããç»é²ãã. 3. ã¯ã­ã¼ãºãã¿ã³ãä½ã. 使ãã toplevel ã¦ã£ã¸ã§ãã, ã¯ã­ã¼ãºãã¿ã³, ã³ã¼ã«ããã¯ç»é²ç¨å¤æ° ãè¿ã. ip: ã¤ã³ã¿ããªã¿ parent: 親ã¦ã£ã¸ã§ãã title: toplevel ã¦ã£ã¸ã§ããã®ã¦ã¤ã³ãã¦ã®ã¿ã¤ãã«