aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller
Commit message (Collapse)AuthorAgeFilesLines
* Fixed assert_redirected_to to work with :only_path => false #1204 [Alisdair ↵David Heinemeier Hansson2005-04-301-1/+1
| | | | | | McDiarmid] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1251 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Check definition on constant not stringDavid Heinemeier Hansson2005-04-301-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1250 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed render_partial_collection to output an empty string instead of nil ↵David Heinemeier Hansson2005-04-301-1/+1
| | | | | | when handed an empty array #1202 [Ryan Carver] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1249 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Improved the speed of regular expression expirations for caching by a factor ↵David Heinemeier Hansson2005-04-301-13/+10
| | | | | | of 10 #1221 [Jamis Buck] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1248 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Removed dumping of template assigns on the rescue page as it would very ↵David Heinemeier Hansson2005-04-301-7/+0
| | | | | | easily include a ton of data making page loads take seconds (and the information was rarely helpful) #1222 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1246 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Disregard expire methods when the controller hasnt been set, which ↵David Heinemeier Hansson2005-04-271-0/+1
| | | | | | essentially makes it such that the record observer callbacks are ignored when the sweeper shouldnt be active git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1242 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added ActionController::Caching::Sweeper as an improved an easier to use ↵David Heinemeier Hansson2005-04-271-28/+62
| | | | | | sweeper. Added that Fragments#expire_fragment now accepts as a regular expression as the name thereby deprecating expire_matched_fragments. Fixed that fragments shouldn't use the current host and the path as part of the key like pages does git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1239 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added conditions to around_filters just like before_filter and after_filterDavid Heinemeier Hansson2005-04-271-2/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1238 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added xml_http_request/xhr method for simulating XMLHttpRequest in ↵David Heinemeier Hansson2005-04-191-0/+6
| | | | | | functional tests #1151 [Sam Stephenson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1230 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that :get, :post, and the others should take a flash array as the ↵David Heinemeier Hansson2005-04-191-2/+2
| | | | | | third argument just like process #1144 [rails@cogentdude.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1227 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed stringification on all assigned hashes. The sacrifice is that ↵David Heinemeier Hansson2005-04-191-1/+5
| | | | | | assigns[:person] wont work in testing. Instead assigns["person"] or assigns(:person) must be used. In other words, the keys of assigns stay strings but weve added a method-based accessor to appease the need for symbols. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1223 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that rendering a template would require a connection to the database #1146David Heinemeier Hansson2005-04-191-3/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1222 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that rendering a template would require a connection to the database #1146David Heinemeier Hansson2005-04-191-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1221 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed documentation and prepared for release of 0.12David Heinemeier Hansson2005-04-185-20/+20
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1216 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added support for web servers that use PATH_INFO instead of REQUEST_URI like ↵David Heinemeier Hansson2005-04-182-3/+15
| | | | | | IIS #1014 [BradG/Nicholas Seckar] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1211 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added graceful handling of PUT, DELETE, and OPTIONS requests for a complete ↵David Heinemeier Hansson2005-04-181-7/+3
| | | | | | coverage of REST functionality #1136 [joshknowles@gmail.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1208 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added assert_tag and assert_no_tag as a much improved alternative to the ↵David Heinemeier Hansson2005-04-176-1/+705
| | | | | | deprecated assert_template_xpath_match #1126 [Jamis Buck] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1195 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Request#xml_http_request? (and an alias xhr?) to that'll return true ↵David Heinemeier Hansson2005-04-171-0/+8
| | | | | | when the request came from one of the Javascript helper methods (Ajax). This can be used to give one behavior for modern browsers supporting Ajax, another to old browsers #1127 [Sam Stephenson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1194 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed page caching for non-vhost applications living underneath the root ↵David Heinemeier Hansson2005-04-172-5/+5
| | | | | | #1004 [Ben Schumacher] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1193 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Hide the deprecated methods from the docsDavid Heinemeier Hansson2005-04-172-31/+31
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1190 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Deprecated the majority of all the testing assertions and replaced them with ↵David Heinemeier Hansson2005-04-176-386/+382
| | | | | | a much smaller core and access to all the collections the old assertions relied on. That way the regular test/unit assertions can be used against these. Added documentation about how to use it all. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1189 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added that render_partial called from a controller will use the action name ↵David Heinemeier Hansson2005-04-171-1/+9
| | | | | | as default #828 [Dan Peterson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1182 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added that deleting a cookie should not just set it to an empty string but ↵David Heinemeier Hansson2005-04-171-2/+3
| | | | | | also instantly expire it #1118 [todd@robotcoop.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1180 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed url_for(nil) in functional tests #1116 [Alisdair McDiarmid]David Heinemeier Hansson2005-04-171-1/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1175 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed error handling of broken layouts #1115 [Michael Schubert]David Heinemeier Hansson2005-04-171-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1173 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Changed render_partial to take local assigns as the second parameter instead ↵David Heinemeier Hansson2005-04-161-5/+5
| | | | | | of an explicit object and then the assigns git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1170 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed pagination to work with joins #1034 [scott@sigkill.org]David Heinemeier Hansson2005-04-131-3/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1159 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that *rest parameter in map.connect couldn't accept an empty list ↵David Heinemeier Hansson2005-04-131-1/+5
| | | | | | #1037 [Dee.Zsombor@gmail.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1158 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that an exception would be thrown when an empty form was submitted ↵David Heinemeier Hansson2005-04-131-1/+1
| | | | | | #1090 [jan@ulbrich-boerwang.de] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1152 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed #1030David Heinemeier Hansson2005-04-101-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1139 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that the content-type for some browsers could include an additional \r ↵David Heinemeier Hansson2005-04-101-1/+1
| | | | | | which made wonky things happen #1067 [Thomas Fuchs] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1130 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that in some circumstances controllers outside of modules may have ↵David Heinemeier Hansson2005-04-101-1/+1
| | | | | | hidden ones inside modules. For example, admin/content might have been hidden by /content. #1075 [Nicholas Seckar] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1125 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed Cache#expire_matched_fragments that couldn't recognize the difference ↵David Heinemeier Hansson2005-04-071-13/+24
| | | | | | between string and url_for options #1030 [skaes@web.de] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1106 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added simulation of @request.request_uri in functional tests #1038 [Jamis Buck]David Heinemeier Hansson2005-04-071-0/+9
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1103 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that benchmarking times for rendering included db runtimes #987 ↵David Heinemeier Hansson2005-04-021-4/+10
| | | | | | [skaes@web.de] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1070 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Removed broken attempt to DRY module ClassMethod #970David Heinemeier Hansson2005-04-022-0/+10
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1069 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Automatically extend the class which gets a module included with the ↵David Heinemeier Hansson2005-04-022-10/+0
| | | | | | ClassMethods module if it exists #970 [Lucas Carlson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1068 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added pagination for scaffolding (10 items per page) #964 [mortonda@dgrmm.net]David Heinemeier Hansson2005-04-023-2/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1067 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added assert_no_cookie and fixed assert_cookie_equal to deal with ↵David Heinemeier Hansson2005-04-021-2/+11
| | | | | | non-existing cookies #979 [bitsweat] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1065 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed :overwrite_param so it doesn't delete but reject elements from ↵David Heinemeier Hansson2005-04-021-1/+1
| | | | | | @request.parameters #982 [raphinou@yahoo.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1061 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added :method option to verify for ensuring that either GET, POST, etc is ↵David Heinemeier Hansson2005-04-021-4/+13
| | | | | | allowed #984 [Jamis Buck] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1060 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Improved the message display on the exception handler pages #963 [Johan ↵David Heinemeier Hansson2005-03-313-6/+9
| | | | | | Sorensen] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1048 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that on very rare occasions, webrick would raise a NoMethodError: ↵David Heinemeier Hansson2005-03-311-1/+1
| | | | | | private method 'split' called for nil #1001 [Flurin Egger] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1045 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed problem with page caching #958 [Rick Olson]David Heinemeier Hansson2005-03-271-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1029 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added ActionController::Base.page_cache_extension for setting the page cache ↵David Heinemeier Hansson2005-03-271-1/+9
| | | | | | file extension (the default is .html) #903 [Andreas] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1019 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed "bad environment variable value" exception caused by Safari, Apache, ↵David Heinemeier Hansson2005-03-271-1/+1
| | | | | | and Ajax calls #918 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1018 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added :owerwrite_params back to url_for and friends -- it was AWL since the ↵David Heinemeier Hansson2005-03-271-1/+8
| | | | | | introduction of Routes #921 [raphinou] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1016 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Whitespace flickerDavid Heinemeier Hansson2005-03-261-1/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1011 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added include_seconds option as the third parameter to ↵David Heinemeier Hansson2005-03-261-1/+1
| | | | | | distance_of_time_in_words which will render "less than a minute" in higher resolution ("less than 10 seconds" etc) #944 [thomas@fesch.at] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1010 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added fourth option to process in test cases to specify the content of the ↵David Heinemeier Hansson2005-03-261-1/+2
| | | | | | flash #949 [Jamis Buck] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1009 5ecf4fe2-1ee6-0310-87b1-e25e094e27de