APIdock: Front page

Flowdock. Choose a project. Rspec_icon_80. RSpec. Behaviour Driven Development framework for Ruby. 6 imported versions - 23 notes - Browse - Search ...

Link: apidock.com

  • assign_attributes (ActiveRecord::Base)

    apidock.com 07 Feb '14, 10am

    This method is deprecated or moved on the latest stable version. The last existing version (v3.1.0) is shown here. These similar methods exist in v4.0.2: ActiveRecord::AttributeAssignment#assign_attributes

  • reset_pk_sequence! (ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::SchemaStatements)

    apidock.com 05 Feb '14, 5pm

    reset_pk_sequence! (table, pk = nil, sequence = nil) public Resets the sequence of a table’s primary key to the maximum value. Show source # File activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb, line 279 def reset_pk_sequence! ( table , pk = nil , se...

  • to_prepare (ActionDispatch::Reloader)

    apidock.com 29 Jan '14, 12am

    Add a prepare callback. Prepare callbacks are run before each request, prior to ActionDispatch::Callback’s before callbacks. Show source # File actionpack/lib/action_dispatch/middleware/reloader.rb, line 34 def self.to_prepare (* args , & block ) set_callback ( :prepare , * args , & b...

  • truncate (String)

    apidock.com 03 Feb '14, 3pm

    Truncates a given text after a given length if text is longer than length: ' Once upon a time in a world far far away '. truncate ( 27 ) # => "Once upon a time in a wo..." Pass a string or regexp :separator to truncate text at a natural break: ' Once upon a time in a world far far awa...

  • to_sentence (Array)

    apidock.com 27 Jan '14, 9pm

    :words_connector - The sign or word used to join the elements in arrays with two or more elements (default: “, ”). :two_words_connector - The sign or word used to join the elements in arrays with two elements (default: “ and ”). :last_word_connector - The sign or word used to join the...

  • inquiry (String)

    apidock.com 28 Jan '14, 11am

    Wraps the current string in the ActiveSupport::StringInquirer class, which gives you a prettier way to test for equality. env = ' production '. inquiry env . production? # => true env . development? # => false Show source # File activesupport/lib/active_support/core_ext/string/inquiry...

  • check_query (URI::Generic)

    apidock.com 14 Jan '14, 7pm

    check the query v component for RFC2396 compliance and against the URI::Parser Regexp for :QUERY Can not have a opaque component defined, with a query component defined. Show source # File lib/uri/generic.rb, line 882 def check_query ( v ) return v unless v # raise if both hier and op...

  • has_and_belongs_to_many (ActiveRecord::Associations::ClassMethods)

    apidock.com 26 Jan '14, 11pm

    Specifies a many-to-many relationship with another class. This associates two classes via an intermediate join table. Unless the join table is explicitly specified as an option, it is guessed using the lexical order of the class names. So a join between Developer and Project will give...

    1. Sass: Responsive Test sass-lang.com 24 Jan '14, 6pm


Ruby on Rails API
Ruby-Doc.org: Documenting the Ruby Language
RubyDoc.info - Library Listing
RailsCasts: Ruby on Rails Screencasts
Ruby Inside: The Ruby Blog
Parasite Control with the MMS Miracle Mineral Supplement