Jeremy Kemper
|
e17df19b86
|
Allow array and hash query parameters. Array route parameters are converted/to/a/path as before. References #6765, #7462. Closes #7047.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6343 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-06 07:47:23 +00:00 |
|
Rick Olson
|
2b7dbad8e0
|
Add a #dbman attr_reader for CGI::Session and make CGI::Session::CookieStore#generate_digest public so it's easy to generate digests
using the cookie store's secret. [Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6342 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-06 04:09:14 +00:00 |
|
Tobias Lütke
|
e52c28a425
|
Ignore odd charset declaration in CONTENT_TYPE header which would throw off mime type lookup.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6340 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-05 18:24:17 +00:00 |
|
David Heinemeier Hansson
|
8a1956bd99
|
Sans request please
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6317 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-04 20:44:01 +00:00 |
|
David Heinemeier Hansson
|
e0179c1254
|
Added Request#url that returns the complete URL used for the request [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6316 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-04 20:32:38 +00:00 |
|
David Heinemeier Hansson
|
4568c1d744
|
Added URL escaping of user and password when used through the UrlWriter
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6314 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-04 20:10:51 +00:00 |
|
Jeremy Kemper
|
a752099082
|
Sort asset sources for consistent results across filesystems. Closes #7615.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6308 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-04 12:36:45 +00:00 |
|
Jeremy Kemper
|
8f94cc5cb4
|
Extract dynamic scaffolding into a plugin. Closes #7700.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6306 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-04 08:35:52 +00:00 |
|
David Heinemeier Hansson
|
bf6d4cede7
|
Added user/password options for url_for to add http authentication in a URL [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6302 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-03 22:19:54 +00:00 |
|
David Heinemeier Hansson
|
1dc56ba481
|
Fixed that FormTagHelper#text_area_tag should disregard :size option if it's not a string [Brendon Davidson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6300 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-03 18:04:44 +00:00 |
|
Jeremy Kemper
|
f254831e83
|
Cookie store: use OpenSSL::HMAC instead of basic hash. Introduce :secret block and :digest option.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6296 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-03 13:54:54 +00:00 |
|
Jeremy Kemper
|
a0563bf7b0
|
Cookie store: test that >4K raises CookieOverflow and that unverifiable cookies are automatically deleted.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6294 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-03 08:18:30 +00:00 |
|
David Heinemeier Hansson
|
e69390dffe
|
Options are more often than not meaningless babble, just go nondescript instead
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6275 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-01 23:27:04 +00:00 |
|
Jamis Buck
|
b1ff3b48e2
|
Set the original button value in an attribute of the button when using the :disable_with key with submit_tag
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6270 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-28 22:18:50 +00:00 |
|
Jeremy Kemper
|
df7ca38d7d
|
session_enabled? works with session :off. Closes #6680.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6253 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-27 06:36:25 +00:00 |
|
David Heinemeier Hansson
|
b8cd80550f
|
Added :port and :host handling to UrlRewriter (which unified url_for usage, regardless of whether it's called in view or controller) #7616 [alancfrancis]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6235 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-25 20:22:09 +00:00 |
|
David Heinemeier Hansson
|
cd4dbd8cd2
|
Doc fixes
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6234 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-25 20:19:24 +00:00 |
|
David Heinemeier Hansson
|
9b46f69381
|
Allow send_file/send_data to use a registered mime type as the :type parameter #7620 [jonathan]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6233 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-25 20:16:58 +00:00 |
|
David Heinemeier Hansson
|
784298008b
|
Allow routing requirements on map.resource(s) (closes #7633) [quixoten]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6232 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-25 20:13:19 +00:00 |
|
David Heinemeier Hansson
|
b203b9b55b
|
Fixed broken test
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6231 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-25 20:11:18 +00:00 |
|
David Heinemeier Hansson
|
793c9ff68d
|
Moved perform_caching test set up into test's setup to fix a dependence fragility (closes #7640)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6230 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-25 19:53:14 +00:00 |
|
Jeremy Kemper
|
781985f7f2
|
Cookie session store: empty and unchanged sessions don't write a cookie.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6226 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-25 16:35:24 +00:00 |
|
David Heinemeier Hansson
|
f95dfff966
|
Added helper(:all) as a way to include all helpers from app/helpers/**/*.rb in ApplicationController [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6221 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-24 20:31:34 +00:00 |
|
Jeremy Kemper
|
236fe10fe9
|
Integration tests: introduce methods for other HTTP methods. Closes #6353.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6203 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-22 09:28:10 +00:00 |
|
Jeremy Kemper
|
c8f7860d50
|
CGI escape the session cookie.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6200 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-22 01:17:28 +00:00 |
|
Jeremy Kemper
|
5a1251dc2d
|
Session configuration in config/environment.rb instead of app/controllers/application.rb
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6198 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-22 00:57:02 +00:00 |
|
Tobias Lütke
|
2ffbc6115e
|
Enable active record cache automatically for all actions
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6189 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-21 18:08:39 +00:00 |
|
David Heinemeier Hansson
|
9b854c22b1
|
Added subdirectory test
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6188 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-21 15:58:42 +00:00 |
|
David Heinemeier Hansson
|
7f55931f80
|
Make sure that the filesystem is not involved with asset hosting
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6187 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-21 15:28:37 +00:00 |
|
Jeremy Kemper
|
de0a0d700e
|
Routing: better support for escaped values in route segments. Closes #7544.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6185 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-21 10:05:07 +00:00 |
|
Jeremy Kemper
|
f29857690f
|
Introduce a cookie-based session store as the Rails default. Sessions 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
|
2007-02-21 09:17:38 +00:00 |
|
David Heinemeier Hansson
|
2afc01b7ce
|
Make assert_select access content_type through accessor instead of header
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6181 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-21 00:40:58 +00:00 |
|
David Heinemeier Hansson
|
21187c0fb4
|
Apply the rest of Chads patch
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6180 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-21 00:29:44 +00:00 |
|
David Heinemeier Hansson
|
e105653066
|
Added .erb and .builder as preferred aliases to the now deprecated .rhtml 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
|
2007-02-20 22:09:12 +00:00 |
|
Jeremy Kemper
|
772e02dd62
|
Factor out unique id generator. Expose cgi to session store.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6174 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-19 23:51:25 +00:00 |
|
David Heinemeier Hansson
|
9e4c8b8858
|
Fix tests depending too deep
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6169 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-19 02:25:01 +00:00 |
|
David Heinemeier Hansson
|
94fa0ed053
|
Its ETag not Etag
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6168 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-19 02:10:19 +00:00 |
|
David Heinemeier Hansson
|
bd0cd04374
|
Set cache-control to private if theres an etag available (and the cache-control hasnt been overwritten already)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6167 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-19 02:04:26 +00:00 |
|
David Heinemeier Hansson
|
372db1cd9e
|
Dont ask for no caching if we have a etag to base that decision on
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6166 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-19 01:33:35 +00:00 |
|
David Heinemeier Hansson
|
7ec0204ecd
|
Move etagging down to response, so renders with layouts dont screw it up [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6165 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-19 00:27:19 +00:00 |
|
David Heinemeier Hansson
|
aad7fbde68
|
Added caching option to AssetTagHelper#stylesheet_link_tag and AssetTagHelper#javascript_include_tag [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6164 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-18 23:54:20 +00:00 |
|
David Heinemeier Hansson
|
109d4ac954
|
Allow people to set their own etags, if they want more control over the process (closes #7580) []
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6163 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-18 16:32:05 +00:00 |
|
Jeremy Kemper
|
c9260c556c
|
Add request protocol to asset host if not given. Prefer setting asset host as hostname only, no request protocol.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6162 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-18 07:23:57 +00:00 |
|
Jeremy Kemper
|
90c1207c38
|
Work around the two connection per host browser limit: use asset%d.myapp.com 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
|
2007-02-18 06:44:20 +00:00 |
|
Jeremy Kemper
|
4fd84aae90
|
Etagging ignores appended and block responses.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6160 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-18 00:47:18 +00:00 |
|
David Heinemeier Hansson
|
392c7f7314
|
Added default mime type for CSS (Mime::CSS) [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6159 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-18 00:00:14 +00:00 |
|
David Heinemeier Hansson
|
2e55095f6f
|
Added that rendering will automatically insert the etag header on 200 OK 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
|
2007-02-17 18:16:44 +00:00 |
|
David Heinemeier Hansson
|
cfa7df3fbb
|
Added X-Runtime to all responses with the request run time [DHH] (rename from X-Benchmark)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6157 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-17 05:11:55 +00:00 |
|
David Heinemeier Hansson
|
c74c78c88d
|
Added X-Benchmark to all responses with the same benchmark data as goes into the log [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6156 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-16 21:13:02 +00:00 |
|
David Heinemeier Hansson
|
06669f8b13
|
In tests, content_type can be nil, which would disturb accepts/format
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6155 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-15 18:52:08 +00:00 |
|