aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Added fixtures :all to test_helper.rb to assume that most people just want ↵David Heinemeier Hansson2007-02-258-4/+31
| | | | | | all their fixtures loaded all the time [DHH] Added fixtures :all as a way of loading all fixtures in the fixture directory at once (closes #7214) [manfred] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6227 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Cookie session store: empty and unchanged sessions don't write a cookie.Jeremy Kemper2007-02-253-2/+19
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6226 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Allow users to provide custom formatters to Logger. [aeden] Closes #7106, #2484Michael Koziarski2007-02-253-4/+53
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6225 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* fix app generatorRick Olson2007-02-242-3/+13
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6224 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make it a default assumption that you want all helpers, all the time (yeah, ↵David Heinemeier Hansson2007-02-241-0/+1
| | | | | | yeah) git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6222 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added helper(:all) as a way to include all helpers from app/helpers/**/*.rb ↵David Heinemeier Hansson2007-02-244-6/+45
| | | | | | in ApplicationController [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6221 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* No s on configDavid Heinemeier Hansson2007-02-231-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6214 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Include two default initializers as examplesDavid Heinemeier Hansson2007-02-234-3/+21
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6213 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added config/initializers where all ruby files within it are automatically ↵David Heinemeier Hansson2007-02-235-19/+38
| | | | | | loaded after the Rails configuration is done, so you don't have to litter the environment.rb file with a ton of mixed stuff [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6212 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Move session settings closer togetherDavid Heinemeier Hansson2007-02-231-7/+7
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6211 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make sure parsed emails recognize attachments nested in multpart parts ↵Jamis Buck2007-02-224-2/+114
| | | | | | (closes #6714) git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6207 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix broken testsJamis Buck2007-02-221-7/+7
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6206 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.8.6 compatibility.Jeremy Kemper2007-02-221-3/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6204 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Integration tests: introduce methods for other HTTP methods. Closes #6353.Jeremy Kemper2007-02-223-2/+41
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6203 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Use the query cache iff Active Record is configured.Jeremy Kemper2007-02-221-8/+16
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6202 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* CGI escape the session cookie.Jeremy Kemper2007-02-222-4/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6200 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Oops, don't omit the session_key since it's used as the cookie name.Jeremy Kemper2007-02-221-1/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6199 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Session configuration in config/environment.rb instead of ↵Jeremy Kemper2007-02-223-7/+9
| | | | | | app/controllers/application.rb git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6198 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Missed commit for [6184]. Generate a random secret for new app's cookie ↵Jeremy Kemper2007-02-213-3/+8
| | | | | | session store. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6197 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added database connection as a yield parameter to ↵David Heinemeier Hansson2007-02-214-2/+44
| | | | | | ActiveRecord::Base.transaction so you can manually rollback [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6196 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed query cache when multiple database connections were involvedTobias Lütke2007-02-212-2/+13
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6195 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Enable active record cache automatically for all actionsTobias Lütke2007-02-213-16/+44
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6189 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added subdirectory testDavid Heinemeier Hansson2007-02-211-0/+16
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6188 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make sure that the filesystem is not involved with asset hostingDavid Heinemeier Hansson2007-02-212-12/+26
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6187 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Routing: better support for escaped values in route segments. Closes #7544.Jeremy Kemper2007-02-213-6/+55
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6185 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Introduce a cookie-based session store as the Rails default. Sessions ↵Jeremy Kemper2007-02-215-3/+257
| | | | | | typically contain at most a user_id and flash message; both fit within the 4K cookie size limit. A secure hash is included with the cookie to ensure data integrity (a user cannot alter his user_id without knowing the secret key included in the hash). If you have more than 4K of session data or don't want your data to be visible to the user, pick another session store. Cookie-based sessions are dramatically faster than the alternatives. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6184 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make assert_select access content_type through accessor instead of headerDavid Heinemeier Hansson2007-02-211-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6181 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Apply the rest of Chads patchDavid Heinemeier Hansson2007-02-21144-378/+841
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6180 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* You can now use cache in instance hierachies. This allows ↵Tobias Lütke2007-02-202-5/+33
| | | | | | ActiveRecord::Base.cache { } usage to cache everything git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6179 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added .erb and .builder as preferred aliases to the now deprecated .rhtml ↵David Heinemeier Hansson2007-02-2079-515/+61
| | | | | | and .rxml extensions [Chad Fowler]. This is done to separate the renderer from the mime type. .erb templates are often used to render emails, atom, csv, whatever. So labeling them .rhtml doesn't make too much sense. The same goes for .rxml, which can be used to build everything from HTML to Atom to whatever. .rhtml and .rxml will continue to work until Rails 3.0, though. So this is a slow phasing out. All generators and examples will start using the new aliases, though. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6178 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Stop swallowing errors during rake test [Koz]Michael Koziarski2007-02-202-7/+12
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6176 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Factor out unique id generator. Expose cgi to session store.Jeremy Kemper2007-02-191-13/+25
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6174 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix tests depending too deepDavid Heinemeier Hansson2007-02-194-11/+12
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6169 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Its ETag not EtagDavid Heinemeier Hansson2007-02-192-8/+8
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6168 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Set cache-control to private if theres an etag available (and the ↵David Heinemeier Hansson2007-02-191-1/+1
| | | | | | cache-control hasnt been overwritten already) git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6167 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Dont ask for no caching if we have a etag to base that decision onDavid Heinemeier Hansson2007-02-191-0/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6166 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Move etagging down to response, so renders with layouts dont screw it up [DHH]David Heinemeier Hansson2007-02-194-43/+50
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6165 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added caching option to AssetTagHelper#stylesheet_link_tag and ↵David Heinemeier Hansson2007-02-189-29/+291
| | | | | | AssetTagHelper#javascript_include_tag [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6164 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Allow people to set their own etags, if they want more control over the ↵David Heinemeier Hansson2007-02-182-2/+9
| | | | | | process (closes #7580) [] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6163 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add request protocol to asset host if not given. Prefer setting asset host ↵Jeremy Kemper2007-02-182-3/+21
| | | | | | as hostname only, no request protocol. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6162 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Work around the two connection per host browser limit: use asset%d.myapp.com ↵Jeremy Kemper2007-02-183-32/+75
| | | | | | to distribute asset requests among asset[0123].myapp.com. Use a DNS wildcard or CNAMEs to map these hosts to your asset server. See http://www.die.net/musings/page_load_time/ for background. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6161 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Etagging ignores appended and block responses.Jeremy Kemper2007-02-182-14/+16
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6160 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added default mime type for CSS (Mime::CSS) [DHH]David Heinemeier Hansson2007-02-182-0/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6159 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added that rendering will automatically insert the etag header on 200 OK ↵David Heinemeier Hansson2007-02-174-0/+70
| | | | | | responses. The etag is calculated using MD5 of the response body. If a request comes in that has a matching etag, the response will be changed to a 304 Not Modified and the response body will be set to an empty string. [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6158 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added X-Runtime to all responses with the request run time [DHH] (rename ↵David Heinemeier Hansson2007-02-172-8/+7
| | | | | | from X-Benchmark) git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6157 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added X-Benchmark to all responses with the same benchmark data as goes into ↵David Heinemeier Hansson2007-02-162-5/+12
| | | | | | the log [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6156 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* In tests, content_type can be nil, which would disturb accepts/formatDavid Heinemeier Hansson2007-02-151-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6155 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* remove Mime::PLAIN from tests so its not confused with the default ↵Rick Olson2007-02-151-6/+6
| | | | | | Mime::TEXT mime type git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6153 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add Mime::Type convenience methods to check the current mime type. [Rick]Rick Olson2007-02-155-3/+40
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6152 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* MySQL disallows TEXT defaults so don't test for them.Jeremy Kemper2007-02-111-3/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6149 5ecf4fe2-1ee6-0310-87b1-e25e094e27de