post2

post2(path, data, initheader = nil) Instance Public methods Alias for: request_post

recvmsg

basicsocket.recvmsg(maxmesglen=nil, flags=0, maxcontrollen=nil, opts={}) => [mesg, sender_addrinfo, rflags, *controls] Instance Public methods recvmsg receives a message using recvmsg(2) system call in blocking manner. maxmesglen is the maximum length of mesg to receive. flags is bitwise OR of MSG_* constants such as Socket::MSG_PEEK. maxcontrollen is the maximum length of controls (ancillary data) to receive. opts is option hash. Currently :scm_rights=>bool is the only opti

json_create

json_create(object) Class Public methods Import a JSON Marshalled object. method used for JSON marshalling support.

==

obj == other â true or false Instance Public methods Equality â At the Object level, == returns true only if obj and other are the same object. Typically, this method is overridden in descendant classes to provide class-specific meaning. Unlike ==, the equal? method should never be overridden by subclasses as it is used to determine object identity (that is, a.equal?(b) if and only if a is the same object as b): obj = "a" other = obj.dup a == other #=> true a.equal?

equal?

obj.equal?(other) â true or false Instance Public methods Equality â At the Object level, == returns true only if obj and other are the same object. Typically, this method is overridden in descendant classes to provide class-specific meaning. Unlike ==, the equal? method should never be overridden by subclasses as it is used to determine object identity (that is, a.equal?(b) if and only if a is the same object as b): obj = "a" other = obj.dup a == other #=> true a.equal?

locale 2

locale() Instance Public methods

strict_decode64

strict_decode64(str) Instance Public methods Returns the Base64-decoded version of str. This method complies with RFC 4648. ArgumentError is raised if str is incorrectly padded or contains non-alphabet characters. Note that CR or LF are also rejected.

sort!

ary.sort! â aryary.sort! { |a, b| block } â ary Instance Public methods Sorts self in place. Comparisons for the sort will be done using the <=> operator or using an optional code block. The block must implement a comparison between a and b, and return -1, when a follows b, 0 when a and b are equivalent, or +1 if b follows a. See also Enumerable#sort_by. a = [ "d", "a", "e", "c", "b" ] a.sort! #=> ["a", "b", "c", "d", "e"] a.sort! { |

build

build(name) Instance Public methods

protect_from_forgery

protect_from_forgery(options = {}) Instance Public methods Turn on request forgery protection. Bear in mind that only non-GET, HTML/JavaScript requests are checked. class ApplicationController < ActionController::Base protect_from_forgery end class FooController < ApplicationController protect_from_forgery except: :index You can disable CSRF protection on controller by skipping the verification before_action: skip_before_action :verify_authenticity_token Valid Options: