aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
Commit message (Collapse)AuthorAgeFilesLines
* Fixed scaffolding to use the latest styleDavid Heinemeier Hansson2005-06-022-1/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1380 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Made Action View work with the new render :file/:partial style from the ↵David Heinemeier Hansson2005-06-021-2/+15
| | | | | | controller git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1379 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* render(:action) and render() are the only two render calls to use a layout ↵Jamis Buck2005-06-014-11/+10
| | | | | | by default. All others default to :layout => false. Also, allow :layout => true to be a synonym for :layout => nil. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1378 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* render(:inline) defaults to :layout => falseJamis Buck2005-05-303-3/+16
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1372 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make sure the benchmarking render method always returns the result of the ↵Jamis Buck2005-05-305-27/+25
| | | | | | render, regardless of whether logging is enabled or not. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1371 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* render(:text), render(:partial), and render(:nothing) always default to ↵Jamis Buck2005-05-304-6/+33
| | | | | | :layout => false. This also fixes send_file, which was applying a layout if one existed for the current action. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1369 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* verify with :redirect_to won't redirect if a redirect or render has already ↵Jamis Buck2005-05-303-30/+47
| | | | | | been performed #1350 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1367 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* render(:partial => "...") uses an empty hash for the local assigns #1365. ↵Jamis Buck2005-05-303-5/+16
| | | | | | render(:partial => true) is identical to the older render_partial() git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1366 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Don't die when an attempt to delete a cache failsJamis Buck2005-05-301-1/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1365 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Updated unit test styleDavid Heinemeier Hansson2005-05-221-48/+43
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1355 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Test for no layout on nothingDavid Heinemeier Hansson2005-05-221-1/+10
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1354 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* render :nothing shouldnt cause layoutsDavid Heinemeier Hansson2005-05-221-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1353 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Set redirected_to properDavid Heinemeier Hansson2005-05-221-3/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1352 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Cure some ills discovered with the refactoringDavid Heinemeier Hansson2005-05-225-34/+35
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1351 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Deprecated all render_* methods in favor of consolidating all rendering ↵David Heinemeier Hansson2005-05-229-266/+288
| | | | | | behavior in Base#render(options). This enables more natural use of combining options, such as layouts git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1350 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Deprecated redirect_to_path and redirect_to_url in favor of letting ↵David Heinemeier Hansson2005-05-229-50/+396
| | | | | | redirect_to do the right thing when passed either a path or url. Introduced r as a unified method for render (still under construction) git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1349 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added DoubleRenderError exception that'll be raised if render* is called ↵David Heinemeier Hansson2005-05-212-2/+11
| | | | | | twice #518 [Nicholas Seckar]. Fixed exceptions occuring after render has been called #1096 [Nicholas Seckar] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1348 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed use of an integer as return code for renders, so render_text "hello ↵David Heinemeier Hansson2005-05-212-1/+3
| | | | | | world", 404 now works #1327 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1345 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Made the post_format work with content-typeDavid Heinemeier Hansson2005-05-201-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1337 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Made the post_format work with content-typeDavid Heinemeier Hansson2005-05-203-9/+15
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1336 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Include flash in the list of attributes with accessors in the viewDavid Heinemeier Hansson2005-05-202-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1334 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed assert_redirect_to to work with redirect_to_path #869 [Nicholas Seckar]David Heinemeier Hansson2005-05-193-8/+41
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1332 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed escaping of :method option in remote_form_tag #1218 [Rick Olson]David Heinemeier Hansson2005-05-192-1/+7
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1328 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Optimize ActionCacheFilter by using url_for less #1230 [skaen]David Heinemeier Hansson2005-05-191-2/+7
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1326 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Cache relative_url_root and optimize path #1232 [skaen]David Heinemeier Hansson2005-05-191-2/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1325 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Faster action_exempted? #1231 [skaen]David Heinemeier Hansson2005-05-192-4/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1324 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Serbia and Montenegro to the country_select #1239 [todd@robotcoop.com]David Heinemeier Hansson2005-05-191-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1323 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed Request#remote_ip in testing #1251 [bitsweat]David Heinemeier Hansson2005-05-193-2/+41
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1322 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that compute_public_path should recognize external URLs, so ↵David Heinemeier Hansson2005-05-193-1/+4
| | | | | | image_tag("http://www.example.com/images/icon.gif") is not prefixed with the relative url path #1254 [victor-ronr-trac@carotena.net] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1321 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added support for descending year values in DateHelper#select_year, like ↵David Heinemeier Hansson2005-05-193-6/+21
| | | | | | select_year(Date.today, :start_year => 2005, :end_year => 1900), which would count down from 2005 to 1900 instead of the other way #1274 [nwoods@mail.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1320 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ajax docing #1282 [Dee.Zsombor@gmail.com]David Heinemeier Hansson2005-05-191-0/+13
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1318 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that FormHelper#checkbox should return a checked checkbox if the value ↵David Heinemeier Hansson2005-05-193-0/+12
| | | | | | is the same as checked_value #1286 [Florian Weber] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1317 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed doc #1291David Heinemeier Hansson2005-05-191-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1315 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed Form.disable in Prototype #1317 [Wintermute]David Heinemeier Hansson2005-05-192-1/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1311 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Push to .org insteadDavid Heinemeier Hansson2005-05-191-3/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1310 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added accessors to logger, params, response, session, and headers from the ↵David Heinemeier Hansson2005-05-193-0/+14
| | | | | | view, so you can write <% logger.info "stuff" %> instead of <% @logger.info "others" %> -- more consistent with the preferred way of accessing these attributes and collections from the controller git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1307 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Update docs to X-POST_DATA_MARSHALDavid Heinemeier Hansson2005-05-141-4/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1306 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Use X-POST_DATA_FORMAT instead of just POST_DATA_FORMATDavid Heinemeier Hansson2005-05-142-4/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1305 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added support for POST data in form of YAML or XML, which is controller ↵David Heinemeier Hansson2005-05-142-1/+31
| | | | | | through the POST_DATA_MARSHAL header git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1304 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added support for POST data in form of YAML or XML, which is controller ↵David Heinemeier Hansson2005-05-145-8/+1065
| | | | | | through the POST_DATA_MARSHAL header git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1303 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that render_partial_collection should always return a string (and not ↵David Heinemeier Hansson2005-05-132-1/+4
| | | | | | sometimes an array, despite <%= %> not caring) git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1302 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Go straight to the class for asset_hostDavid Heinemeier Hansson2005-05-091-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1299 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added TextHelper#sanitize that can will remove any Javascript handlers, ↵David Heinemeier Hansson2005-05-093-0/+81
| | | | | | blocks, and forms from an input of HTML. This allows for use of HTML on public sites, but still be free of XSS issues. #1277 [Jamis Buck] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1298 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed the HTML scanner used by assert_tag where a infinite loop could be ↵David Heinemeier Hansson2005-05-093-4/+17
| | | | | | caused by a stray less-than sign in the input #1270 [Jamis Buck] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1297 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Only gsub on a stringDavid Heinemeier Hansson2005-05-061-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1292 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added functionality to assert_tag, so you can now do tests on the siblings ↵David Heinemeier Hansson2005-05-064-5/+59
| | | | | | of a node, to assert that some element comes before or after the element in question, or just to assert that some element exists as a sibling #1226 [Jamis Buck] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1291 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Changed RAILS_ASSET_HOST to become ActionController::Base.asset_hostDavid Heinemeier Hansson2005-05-062-1/+7
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1289 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added better error handling for regexp caching expirationDavid Heinemeier Hansson2005-05-062-2/+12
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1288 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Treat all request types as upper-case so the switch will workDavid Heinemeier Hansson2005-05-041-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1283 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Made it default to assuming a GET request and reading from command-line only ↵David Heinemeier Hansson2005-05-041-4/+4
| | | | | | in case of the new CMD method git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1282 5ecf4fe2-1ee6-0310-87b1-e25e094e27de