reload

reload(options = nil) Instance Public methods Reloads the record from the database. This method finds record by its primary key (which could be assigned manually) and modifies the receiver in-place: account = Account.new # => #<Account id: nil, email: nil> account.id = 1 account.reload # Account Load (1.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT 1 [["id", 1]] # => #<Account id: 1, email: 'account@example.com'> Attributes are reloa

test_radiobutton

test_radiobutton(ip, parent) Instance Public methods radiobutton ã®ãµã³ãã«.

indent

indent(amount, indent_string=nil, indent_empty_lines=false) Instance Public methods Indents the lines in the receiver: <<EOS.indent(2) def some_method some_code end EOS # => def some_method some_code end The second argument, indent_string, specifies which indent string to use. The default is nil, which tells the method to make a guess by peeking at the first indented line, and fallback to a space if there is none. " foo".indent(2) # => " foo" "foo\

builder_partial_test

builder_partial_test() Instance Public methods :move: test this in Action View

invert

ENV.invert â Hash Class Public methods Returns a new hash created by using environment variable names as values and values as names.

package_version

package_version() Class Public methods

decode64

decode64(str) Instance Public methods Returns the Base64-decoded version of str. This method complies with RFC 2045. Characters outside the base alphabet are ignored. require 'base64' str = 'VGhpcyBpcyBsaW5lIG9uZQpUaGlzIG' + 'lzIGxpbmUgdHdvClRoaXMgaXMgbGlu' + 'ZSB0aHJlZQpBbmQgc28gb24uLi4K' puts Base64.decode64(str) Generates: This is line one This is line two This is line three And so on...

getbyte

str.getbyte(index) â 0 .. 255 Instance Public methods returns the indexth byte as an integer.

alias_attribute

alias_attribute(new_name, old_name) Instance Public methods Allows you to make aliases for attributes. class Person include ActiveModel::AttributeMethods attr_accessor :name attribute_method_suffix '_short?' define_attribute_methods :name alias_attribute :nickname, :name private def attribute_short?(attr) send(attr).length < 5 end end person = Person.new person.name = 'Bob' person.name # => "Bob" person.nickname # => "Bob" person.

&lt;=&gt;

<=>(other) Instance Public methods Extends are sorted by name