aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
Commit message (Collapse)AuthorAgeFilesLines
* r4748@asus: jeremy | 2006-06-29 22:40:35 -0700Jeremy Kemper2006-06-302-2/+2
| | | | | | | Loosen urlencoded content type check. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4524 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed proper form-encoded parameter parsing for requests with "Content-Type: ↵David Heinemeier Hansson2006-06-302-1/+3
| | | | | | application/x-www-form-urlencoded; charset=utf-8" (note the presence of a charset directive) [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4522 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add route_name_path method to generate only the path for a named routes. For ↵Nicholas Seckar2006-06-304-39/+58
| | | | | | example, map.person will add person_path. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4518 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Missing method_key.Jeremy Kemper2006-06-301-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4516 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Retain symbol method key and assign_method_name.Jeremy Kemper2006-06-291-3/+7
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4515 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* r4732@asus: jeremy | 2006-06-29 13:51:32 -0700Jeremy Kemper2006-06-291-1/+4
| | | | | | | Chop RAILS_ROOT from file path for readability. Preserve non-alphanumeric characters for uniqueness. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4514 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* r4730@asus: jeremy | 2006-06-29 13:13:38 -0700Jeremy Kemper2006-06-292-29/+17
| | | | | | | Avoid naming collision among compiled view methods. Back out AM workaround. References #5520. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4512 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix CGI extensions when they expect string but get nil in Windows. Closes ↵Marcel Molina2006-06-282-1/+3
| | | | | | #5276 [mislav@nippur.irb.hr] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4499 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* documentation fixes for ActionController::Verification::ClassMethods verify ↵Rick Olson2006-06-211-5/+10
| | | | | | method. Closes #4310. [oleg.frolov@gmail.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4479 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix in auto_complete_result documentation. closes #5096. [medlar@medlar.it]Rick Olson2006-06-211-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4478 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix indent in pagination documentation. Closes #4990. [Kevin Clark]Rick Olson2006-06-211-2/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4476 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Determine the correct template_root for deeply nested components. Closes #2841.Jeremy Kemper2006-06-213-3/+24
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4474 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix that routes with *path segments in the recall can generate URLs. [Rick]Rick Olson2006-06-173-1/+12
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4454 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Hash.create_from_xml(string) which will create a hash from a XML ↵David Heinemeier Hansson2006-06-163-1160/+74
| | | | | | string and even typecast if possible [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4453 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* add passing test to make sure unhandled requests don't load unnecessary ↵Rick Olson2006-06-161-6/+23
| | | | | | classes. Closed #5408. [nkriege@hotmail.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4451 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix strip_links so that it doesn't hang on multi-line acronym tagsJamis Buck2006-06-082-1/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4446 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Remove problematic control chars in rescue template. (closes #5316)Jamis Buck2006-06-082-4/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4445 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make sure passed routing options are not mutated by routing code. (closes #5314)Jamis Buck2006-06-073-7/+28
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4444 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Do some path normalization to prevent the possible_controllers list from ↵Jamis Buck2006-06-072-6/+43
| | | | | | containing invalid entries git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4443 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make sure named routes are never generated relative to some containing moduleJamis Buck2006-06-062-2/+25
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4442 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Improve parameter expiry handling to fix sticky-id issue. Add a more ↵Jamis Buck2006-06-062-9/+64
| | | | | | informative Route#to_s method. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4441 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Remove dependency on Pathname in new routesJamis Buck2006-06-051-2/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4439 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make sure changing the controller from foo/bar to bing/bang does not change ↵Jamis Buck2006-06-053-1/+12
| | | | | | relative to foo. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4438 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Escape the entire path before trying to recognize it (closes #3671)Jamis Buck2006-06-053-1/+13
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4436 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make sure :id and friends are properly unescaped (closes #5275).Jamis Buck2006-06-053-1/+22
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4435 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make sure regexp chunks are grouped when the segment has a regexp constraint ↵Jamis Buck2006-06-052-1/+24
| | | | | | so that captures are counted correctly (closes #5267) git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4434 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix documentation for with_routing to reflect new reality (closes #5281)Jamis Buck2006-06-052-7/+11
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4433 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Rewind readable CGI params so others may reread them (such as CGI::Session ↵Jeremy Kemper2006-06-023-2/+14
| | | | | | when passing the session id in a multipart form). Closes #210. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4410 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Finish custom handling [DHH]David Heinemeier Hansson2006-06-022-6/+28
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4409 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make new mime types first class [DHH]David Heinemeier Hansson2006-06-021-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4408 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make new mime types first class [DHH]David Heinemeier Hansson2006-06-023-9/+10
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4407 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Mime::TEXT (text/plain) and Mime::ICS (text/calendar) as new default ↵David Heinemeier Hansson2006-06-022-0/+7
| | | | | | types [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4406 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Mime::Type.register(string, symbol, synonyms = []) for adding new ↵David Heinemeier Hansson2006-06-023-4/+20
| | | | | | custom mime types [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4405 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added support for Mime objects in render :content_type option [DHH]David Heinemeier Hansson2006-06-023-1/+13
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4404 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Excise the headache-prone syswrite in send_file.Jeremy Kemper2006-06-021-12/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4403 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add :status option to send_data and send_file. Defaults to '200 OK'. Closes ↵Jeremy Kemper2006-06-023-6/+27
| | | | | | #5243. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4400 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Dont keep nothing as a lookup [DHH]David Heinemeier Hansson2006-06-012-6/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4399 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Tweaks to integration tests and url rewriter for further compatibility with ↵Jamis Buck2006-06-012-3/+3
| | | | | | new routes git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4397 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add RouteSet::Mapper#named_route for compatibility with adding ↵Jamis Buck2006-06-011-1/+5
| | | | | | programmatically named routes git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4395 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* New routes implementation. Simpler, faster, easier to understand. The ↵Jamis Buck2006-06-0115-1672/+1946
| | | | | | published API for config/routes.rb is unchanged, but nearly everything else is different, so expect breakage in plugins and libs that try to fiddle with routes. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4394 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Cope with missing content type and length headers. Parse parameters from ↵Jeremy Kemper2006-06-014-36/+107
| | | | | | multipart and urlencoded request bodies only. Accept multipart PUT parameters. Closes #5235. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4388 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added interrogation of params[:format] to determine Accept type. If :format ↵David Heinemeier Hansson2006-05-314-1/+71
| | | | | | is specified and matches a declared extension, like "rss" or "xml", that mime type will be put in front of the accept handler. This means you can link to the same action from different extensions and use that fact to determine output [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4384 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Easy way to set accepting for functional testsDavid Heinemeier Hansson2006-05-311-0/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4382 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* If not passing a hash, assume :id => whateverDavid Heinemeier Hansson2006-05-311-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4381 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Expanded :method option in FormTagHelper#form_tag, FormHelper#form_for, ↵David Heinemeier Hansson2006-05-293-4/+14
| | | | | | PrototypeHelper#remote_form_for, PrototypeHelper#remote_form_tag, and PrototypeHelper#link_to_remote to allow for verbs other than GET and POST by automatically creating a hidden form field named _method, which will simulate the other verbs over post [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4375 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added :method handling for other verbs to remote_form_tag and ↵David Heinemeier Hansson2006-05-285-10/+22
| | | | | | remote_form_for [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4374 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Expanded :method option in FormHelper#form_tag to allow for verbs other than ↵David Heinemeier Hansson2006-05-284-3/+47
| | | | | | GET and POST by automatically creating a hidden form field named _method, which will simulate the other verbs over post [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4371 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added :method option to UrlHelper#link_to, which allows for using other ↵David Heinemeier Hansson2006-05-283-15/+38
| | | | | | verbs than GET for the link. This replaces the :post option, which is now deprecated. Example: link_to "Destroy", person_url(:id => person), :method => :delete [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4370 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* follow_redirect doesn't complain about being redirected to the same ↵Jeremy Kemper2006-05-223-9/+44
| | | | | | controller. Closes #5153. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4361 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Change the request.env example in AC::Base docs to a var that exists ↵Jeremy Kemper2006-05-171-3/+3
| | | | | | (REMOTE_IP doesn't) and isn't already wrapped by a request method (i.e. request.remote_ip). Closes #5113. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4347 5ecf4fe2-1ee6-0310-87b1-e25e094e27de