aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
Commit message (Collapse)AuthorAgeFilesLines
* Resync with html-scanner (fix parser bug)Jamis Buck2005-06-141-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1419 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Support :render option to :verify #1440 [TobiasLuetke]Jamis Buck2005-06-141-1/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1418 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Updated vendor copy of html-scanner lib, for bug fixes and optimizationsJamis Buck2005-06-144-19/+26
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1416 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Changed test requests to come from 0.0.0.0 instead of 127.0.0.1 such that ↵David Heinemeier Hansson2005-06-141-1/+1
| | | | | | they don't trigger debugging screens on exceptions, but instead call rescue_action_in_public git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1415 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* r2495@sedna: jeremy | 2005-05-27 22:07:18 -0700Jeremy Kemper2005-06-128-63/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Branch to have scaffold use new render methods r2496@sedna: jeremy | 2005-05-28 10:50:51 -0700 axe unused process_request method r2497@sedna: jeremy | 2005-05-28 10:51:58 -0700 sanity assertions in process method check that @controller, @request, @response are set r2498@sedna: jeremy | 2005-05-28 10:53:42 -0700 clean up escaping. use instance_variable_get instead of instance_eval. put id in form action instead of hidden input (like the generated scaffolding) r2499@sedna: jeremy | 2005-05-28 10:54:46 -0700 clean up interpolation, remove tabs from stylesheet r2500@sedna: jeremy | 2005-05-28 10:56:40 -0700 modernize dynamic scaffolding. use params[:id] instead of @params[id]. use consolidated render method instead of render_action, render_file, etc. use builtin inflections rather than module methods. r2501@sedna: jeremy | 2005-05-28 11:00:26 -0700 modernize generated scaffolding. use new-style assertions; use params[:id] instead of @params[id]; use consolidated render method instead of render_* r2542@sedna: jeremy | 2005-06-12 02:24:06 -0700 use :id => model instead of :id => model.id. clean up the form helper method. use flash[:notice] instead of flash['notice']. r2543@sedna: jeremy | 2005-06-12 02:33:22 -0700 whitespace r2544@sedna: jeremy | 2005-06-12 02:56:57 -0700 update changelogs r2545@sedna: jeremy | 2005-06-12 03:26:23 -0700 test dynamic form help when @post is not a new record r2546@sedna: jeremy | 2005-06-12 03:44:14 -0700 touch up TestCase#process sanity assertions git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1404 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Arrays sent via multipart posts are converted to strings #1032 [dj@omelia.org]Jamis Buck2005-06-101-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1397 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* CSS needs "red" not #redDavid Heinemeier Hansson2005-06-061-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1388 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* 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-012-7/+5
| | | | | | 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-301-2/+2
| | | | 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-302-2/+8
| | | | | | 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-301-5/+17
| | | | | | :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-301-1/+1
| | | | | | 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-301-2/+7
| | | | | | 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
* 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-227-253/+261
| | | | | | 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-224-42/+134
| | | | | | 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-211-1/+1
| | | | | | 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-202-4/+10
| | | | 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-201-1/+1
| | | | 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-191-7/+23
| | | | 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-191-1/+5
| | | | 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-191-4/+4
| | | | 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-191-2/+6
| | | | 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-191-1/+1
| | | | | | 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-191-6/+10
| | | | | | 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-191-0/+2
| | | | | | 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-191-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1311 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added accessors to logger, params, response, session, and headers from the ↵David Heinemeier Hansson2005-05-191-0/+2
| | | | | | 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
* 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-141-1/+1
| | | | | | 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-131-1/+2
| | | | | | 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-091-0/+55
| | | | | | 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-092-4/+15
| | | | | | 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-063-5/+57
| | | | | | 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