at_end_of_hour

at_end_of_hour() Instance Public methods Alias for: end_of_hour

full_messages_for

full_messages_for(attribute) Instance Public methods Returns all the full error messages for a given attribute in an array. class Person validates_presence_of :name, :email validates_length_of :name, in: 5..30 end person = Person.create() person.errors.full_messages_for(:name) # => ["Name is too short (minimum is 5 characters)", "Name can't be blank"]

gem

gem(*args) Instance Public methods Adds an entry into Gemfile for the supplied gem. gem "rspec", group: :test gem "technoweenie-restful-authentication", lib: "restful-authentication", source: "http://gems.github.com/" gem "rails", "3.0", git: "git://github.com/rails/rails"

select_rows

select_rows(sql, name = nil, binds = []) Instance Public methods Returns an array of arrays containing the field values. Order is the same as that returned by columns.

load

load(value) Class Public methods

primary_key

primary_key(table) Instance Public methods Returns just a table's primary key

mb_chars

mb_chars() Instance Public methods Multibyte proxy mb_chars is a multibyte safe proxy for string methods. It creates and returns an instance of the ActiveSupport::Multibyte::Chars class which encapsulates the original string. A Unicode safe version of all the String methods are defined on this proxy class. If the proxy class doesn't respond to a certain method, it's forwarded to the encapsulated string. name = 'Claus Müller' name.reverse # => "rell??M sualC" name.length # =>

symbolize_keys

symbolize_keys() Instance Public methods

future?

future?() Instance Public methods Returns true if the date/time is in the future.

unescape

unescape(str, escaped = /%[a-fA-F\d]{2}/) Instance Public methods