url_to_javascript

url_to_javascript(source, options = {}) Instance Public methods Alias for: javascript_url

beginning_of_day

beginning_of_day() Instance Public methods Converts Date to a Time (or DateTime if necessary) with the time portion set to the beginning of the day (0:00) midnight at_midnight at_beginning_of_day

[]

[](key) Instance Public methods Alias for: get

normalize

normalize(form = nil) Instance Public methods Returns the KC normalization of the string by default. NFKC is considered the best normalization form for passing strings to databases and validations. form - The form you want to normalize in. Should be one of the following: :c, :kc, :d, or :kd. Default is ActiveSupport::Multibyte::Unicode#default_normalization_form

parameterize

parameterize(sep = '-') Instance Public methods Replaces special characters in a string so that it may be used as part of a 'pretty' URL. class Person def to_param "#{id}-#{name.parameterize}" end end @person = Person.find(1) # => #<Person id: 1, name: "Donald E. Knuth"> <%= link_to(@person.name, person_path) %> # => <a href="/person/1-donald-e-knuth">Donald E. Knuth</a>

runner

runner(&blk) Class Public methods

supports_migrations?

supports_migrations?() Instance Public methods Does this adapter support migrations? Backend specific, as the abstract adapter always returns false.

regular_class_path

regular_class_path() Instance Protected methods

locking_column

locking_column() Instance Public methods The version column used for optimistic locking. Defaults to lock_version.

create_database

create_database(name, options = {}) Instance Public methods Create a new MySQL database with optional :charset and :collation. Charset defaults to utf8. Example: create_database 'charset_test', charset: 'latin1', collation: 'latin1_bin' create_database 'matt_development' create_database 'matt_development', charset: :big5