Skip to content
Browse files

Add documentation for URL connection strings.

  • Loading branch information...
1 parent 16249fe commit 1f427b534199399545f90fd0895d62c005247501 @glenngillen glenngillen committed with tenderlove Jun 28, 2011
View
6 activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb
@@ -46,6 +46,12 @@ def connection
# "database" => "path/to/dbfile"
# )
#
+ # Or a URL:
+ #
+ # ActiverRecord::Base.establish_connection(
@vijaydev
Ruby on Rails member
vijaydev added a note Jul 22, 2011

Typo!

@spastorino
Ruby on Rails member
spastorino added a note Jul 22, 2011

@vijaydev please pull request :)

@vijaydev
Ruby on Rails member
vijaydev added a note Jul 22, 2011

Here you go #2188 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
+ # "postgres://myuser:mypass@localhost/somedatabase"
+ # )
+ #
# The exceptions AdapterNotSpecified, AdapterNotFound and ArgumentError
# may be returned on an error.
def self.establish_connection(spec = nil)

0 comments on commit 1f427b5

Please sign in to comment.
Something went wrong with that request. Please try again.