aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Only reload connections in development mode that supports (and requires ↵David Heinemeier Hansson2006-11-264-2/+23
| | | | | | that) -- in other words, only do it for SQLite (closes #6687, #6700) [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5637 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Use Location rather than location header.Jeremy Kemper2006-11-263-3/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5635 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix that redirects should set "Location" header, not "location", and remove ↵David Heinemeier Hansson2006-11-262-8/+1
| | | | | | dead CGI.redirect git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5634 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* redirect_to is the one place where _url should be used, not _path [DHH]David Heinemeier Hansson2006-11-261-4/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5633 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* uses_component_template_root looks at caller[0] which turns up the ↵Jeremy Kemper2006-11-262-2/+3
| | | | | | deprecation method rather than the controller. Use caller[1] instead. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5631 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* strip_tags passes through blank args such as nil or "". Closes #6702, ↵Jeremy Kemper2006-11-263-3/+3
| | | | | | references #2229. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5629 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Time#to_s(:time) which will just return H:M, like 17:44 [DHH]David Heinemeier Hansson2006-11-253-0/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5628 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Tried delaying database disconnect until after dependency resolution ↵David Heinemeier Hansson2006-11-251-5/+3
| | | | | | (references #6687, #6700) [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5627 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Dont set default charset if the response is sending a file. Closes #6689 [DHH]David Heinemeier Hansson2006-11-252-1/+13
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5626 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Update initializer to load Rails::VERSION as soon as possible. Closes #6698.Nicholas Seckar2006-11-252-6/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5624 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added CSV to Mime::SET so that respond_to csv will workTobias Lütke2006-11-242-1/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5623 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that HEAD should return the proper Content-Length header (that is, ↵David Heinemeier Hansson2006-11-232-8/+18
| | | | | | actually use @body.size, not just 0) [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5622 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* * Added GET-masquarading for HEAD, so request.method will return :get even ↵David Heinemeier Hansson2006-11-233-7/+21
| | | | | | for HEADs. This will help anyone relying on case request.method to automatically work with HEAD and map.resources will also allow HEADs to all GET actions. Rails automatically throws away the response content in a reply to HEAD, so you dont even need to worry about that. If you, for whatever reason, still need to distinguish between GET and HEAD in some edge case, you can use Request#head? and even Request.headers["REQUEST_METHOD"] for get the "real" answer. Closes #6694 [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5621 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added text/csv as a default mime type and included example on how to make ↵David Heinemeier Hansson2006-11-232-0/+9
| | | | | | your own in config/environment.rb [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5620 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added ActiveRecord::Base.clear_active_connections! in development mode so ↵David Heinemeier Hansson2006-11-232-1/+7
| | | | | | the database connection is not carried over from request to request. Some databases won't reread the schema if that doesn't happen (I'm looking at you SQLite), so you have to restart the server after each migration (= no fun) [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5618 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Actually require the gem foundDavid Heinemeier Hansson2006-11-231-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5616 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Made RAILS_GEM_VERSION work for beta gems too, so specifying 1.1.6 will give ↵David Heinemeier Hansson2006-11-232-1/+4
| | | | | | you 1.1.6.4520 if available [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5614 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Dont include the mime.yml anyway, Mongrel will just ship with more defaults ↵David Heinemeier Hansson2006-11-231-1/+0
| | | | | | instead git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5612 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Update Routing to complain when :controller is not specified by a route. ↵Nicholas Seckar2006-11-224-2/+14
| | | | | | Closes #6669. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5607 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Change fixture_path to a class inheritable accessor allowing test cases to ↵Michael Koziarski2006-11-212-1/+3
| | | | | | have their own custom set of fixtures. Closes #6672 [zdennis] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5604 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make sure .morph makes it inThomas Fuchs2006-11-202-2/+12
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5602 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Quote ActiveSupport::Multibyte::Chars. Closes #6653.Jeremy Kemper2006-11-203-1/+16
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5597 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Test for forged '' default before it's typecast. Closes #6156.Jeremy Kemper2006-11-203-4/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5596 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Test has_one :dependent => :nullify with missing association. Closes #4848.Jeremy Kemper2006-11-201-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5595 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Test has_one :dependent => :nullify with missing association. Closes #4828.Jeremy Kemper2006-11-202-1/+8
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5594 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Simplify query_attribute by typecasting the attribute value and checking ↵Jeremy Kemper2006-11-203-16/+37
| | | | | | whether it's nil, false, zero or blank. Closes #6659. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5593 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ensure render_to_string cleans up after itself when an exception is raised. ↵Jeremy Kemper2006-11-203-4/+52
| | | | | | Closes #6658. Great tests! git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5591 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* validates_numericality_of uses \A \Z to ensure the entire string matches ↵Jeremy Kemper2006-11-203-15/+26
| | | | | | rather than ^ $ which may match one valid line of a multiline string. Closes #5716. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5589 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Run validations in the order they were declared. Closes #6657.Jeremy Kemper2006-11-203-8/+19
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5588 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Extract template_changed_since? from compile_template? so plugins may ↵Jeremy Kemper2006-11-203-5/+48
| | | | | | override its behavior for non-file-based templates. Closes #6651. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5587 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* MySQL: detect when a NOT NULL column without a default value is misreported ↵Jeremy Kemper2006-11-204-4/+41
| | | | | | as default ''. Can't detect for string, text, and binary columns since '' is a legitimate default. Closes #6156. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5586 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Test session table pluralization. Closes #6459.Jeremy Kemper2006-11-201-7/+17
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5585 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Update trunk w/ latest Prototype and script.aculo.usThomas Fuchs2006-11-1910-30/+322
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5581 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Restore windows compatibilityDavid Heinemeier Hansson2006-11-192-4/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5577 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Starting, not started yetDavid Heinemeier Hansson2006-11-191-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5576 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make script/server work with -d and -e on MongrelDavid Heinemeier Hansson2006-11-191-41/+32
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5575 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Use custom mime file for script/server mongrel if config/mime.yml exists. ↵Rick Olson2006-11-192-1/+11
| | | | | | Pass --mime=other/path for a custom mime file. [Rick Olson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5572 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add custom mime type file for mongrel. config/mime.yml is added with ↵Rick Olson2006-11-192-0/+3
| | | | | | generated apps from the rails command. [Rick Olson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5571 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Scaffold resource should have both a layout and a stylesheet [DHH]David Heinemeier Hansson2006-11-196-1/+104
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5565 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Simplify association proxy implementation by factoring construct_scope out ↵Jeremy Kemper2006-11-194-30/+25
| | | | | | of method_missing. Closes #6643. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5564 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Migration benchmark wrappers use alias_method_chain. Closes #6456.Jeremy Kemper2006-11-191-5/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5563 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* simple_format helper doesn't choke on nil. Closes #6644.Jeremy Kemper2006-11-193-11/+15
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5561 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Update Prototype in trunk to [5550]Thomas Fuchs2006-11-174-0/+52
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5551 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Reuse named route helper module between Routing reloads to prevent memory leaks.Nicholas Seckar2006-11-172-1/+7
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5548 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Improve readability.Jeremy Kemper2006-11-171-8/+11
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5547 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Grep slightly faster than select =~Jeremy Kemper2006-11-171-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5546 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* ActionView::Base.erb_variable accessor names the buffer variable used to ↵Jeremy Kemper2006-11-175-7/+10
| | | | | | render templates. Defaults to _erbout; use _buf for erubis. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5544 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Template errors: fix strange deprecation warnings on e.g. @flash.inspect, ↵Jeremy Kemper2006-11-171-42/+66
| | | | | | remove deprecated @assigns, handle sources without a discernable line number, clean up code. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5543 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Test autoloading nested subclass of parent.Jeremy Kemper2006-11-163-0/+13
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5541 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Use attr_accessor_with_default to dry up attribute initialization. ↵Marcel Molina2006-11-162-25/+6
| | | | | | References #6538. [Stuart Halloway] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5540 5ecf4fe2-1ee6-0310-87b1-e25e094e27de