aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/base.rb
Commit message (Collapse)AuthorAgeFilesLines
* Moved session options to SessionManagementDavid Heinemeier Hansson2005-09-131-20/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2229 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added ActionController::Base.session_store=, session_store, and ↵David Heinemeier Hansson2005-09-131-0/+20
| | | | | | session_options to make it easier to tweak the session options (instead of going straight to ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS) git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2228 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Dont log creation of view classDavid Heinemeier Hansson2005-09-121-1/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2225 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Dont encourage custom url options to be called with symbol #2047David Heinemeier Hansson2005-09-111-14/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2190 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added documentation for overwrite_params #2146 [Michael Shuerig]David Heinemeier Hansson2005-09-091-0/+9
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2162 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that render :partial would fail when :object was a Hash (due to ↵David Heinemeier Hansson2005-09-091-1/+1
| | | | | | backwards compatibility issues) #2148 [Sam Stephenson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2160 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* An explicit include ClassInheritableAttributes is no longer needed #1948 ↵David Heinemeier Hansson2005-09-081-2/+0
| | | | | | [Caleb Tennis] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2154 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Avoid extending view instance with helper modules each request. Closes #1979Nicholas Seckar2005-09-081-5/+16
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2152 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* ActionController documentation update #2051 [fbeausoleil@ftml.net]Jamis Buck2005-09-011-3/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2095 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Use string key to set action_name for controllers. Closes #1968Nicholas Seckar2005-08-301-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2077 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Removed unused statementDavid Heinemeier Hansson2005-07-261-1/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1934 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed snag in status reportingDavid Heinemeier Hansson2005-07-261-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1933 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Only log status if there is one different from 200 setDavid Heinemeier Hansson2005-07-261-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1930 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add a catch-all eraserDavid Heinemeier Hansson2005-07-251-2/+7
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1918 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Improved performance of test app req/sec with ~10% refactoring the render ↵David Heinemeier Hansson2005-07-241-61/+87
| | | | | | method #1823 [Stefan Kaes] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1915 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Improved performance with 5-30% through a series of Action Pack ↵David Heinemeier Hansson2005-07-231-7/+20
| | | | | | optimizations #1811 [Stefan Kaes] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1905 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added test for template to layout variable transferDavid Heinemeier Hansson2005-07-231-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1904 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Doc fixes #1775, #1776 [jon@instance-design.co.uk]David Heinemeier Hansson2005-07-221-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1878 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Improved rendering speed on complicated templates by up to 25% #1234 ↵David Heinemeier Hansson2005-07-211-0/+1
| | | | | | [Stephan Kaes]. This did necessasitate a change to the internals of ActionView#render_template that now has four parameters. Developers of custom view handlers (like Amrita) need to update for that. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1874 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Base#expires_in(seconds)/Base#expires_now to control HTTP content ↵David Heinemeier Hansson2005-07-171-0/+23
| | | | | | cache headers #1755 [Thomas Fuchs] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1845 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Worked around a Safari bug where it wouldn't pass headers through if the ↵David Heinemeier Hansson2005-07-121-2/+3
| | | | | | response was zero length by having render :nothing return ' ' instead of '' git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1818 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed documentation for :action/:template confusion #1643David Heinemeier Hansson2005-07-111-7/+7
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1813 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Better documentation for Calling multiple redirects or renders #1687 [courtenay]David Heinemeier Hansson2005-07-101-4/+7
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1795 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Improved error message for DoubleRenderErrorJamis Buck2005-07-091-2/+7
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1779 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Partly tuned docs for release (AP)David Heinemeier Hansson2005-07-061-31/+137
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1728 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Changed logging of SQL statements to use the DEBUG level instead of INFO. ↵David Heinemeier Hansson2005-07-051-0/+4
| | | | | | Added logging of the request URI in the benchmark statement (makes it easy to grep for slow actions). Changed the default logging level in config/environment.rb to INFO for production (so SQL statements won't be logged) git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1714 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* r2829@asus: jeremy | 2005-07-04 23:31:55 -0700Jeremy Kemper2005-07-051-3/+3
| | | | | | | cache protected_instance_variables git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1690 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* r2828@asus: jeremy | 2005-07-04 22:02:44 -0700Jeremy Kemper2005-07-051-6/+10
| | | | | | | cache controller_name and controller_path git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1689 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* r2827@asus: jeremy | 2005-07-04 21:30:06 -0700Jeremy Kemper2005-07-051-5/+4
| | | | | | | precompute action_name git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1688 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added ActionController::Base.enable_upload_progress for people who want to ↵David Heinemeier Hansson2005-07-021-0/+6
| | | | | | play with the experimental upload progress git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1607 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make render(:inline) use locals #1556 [Michael Shuerig]David Heinemeier Hansson2005-07-011-1/+8
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1584 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added support for upload progress indicators in Apache and lighttpd 1.4.x ↵David Heinemeier Hansson2005-06-281-1/+13
| | | | | | (won't work in WEBrick or lighttpd 1.3.x) #1475 [Sean Treadway] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1552 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Improved performance of Routes generation by a factor of 5 #1434 [Nicholas ↵David Heinemeier Hansson2005-06-241-1/+2
| | | | | | Seckar] Added named routes (NEEDS BETTER DESCRIPTION) #1434 [Nicholas Seckar] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1496 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added ActionController::Base.allow_concurrency to control whether the ↵David Heinemeier Hansson2005-06-231-0/+6
| | | | | | application is thread-safe, so multi-threaded servers like WEBrick knows whether to apply a mutex around the performance of each action. Action Pack and Active Record are by default thread-safe, but many applications may not be. Turned off by default. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1487 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* render(:action) and render() are the only two render calls to use a layout ↵Jamis Buck2005-06-011-1/+1
| | | | | | 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(: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
* 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-221-2/+3
| | | | 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-221-231/+30
| | | | | | 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-221-19/+84
| | | | | | 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-211-2/+10
| | | | | | 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
* Changed RAILS_ASSET_HOST to become ActionController::Base.asset_hostDavid Heinemeier Hansson2005-05-061-0/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1289 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Doc fix #1200David Heinemeier Hansson2005-04-301-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1257 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
* 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
* 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 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
* Added trailing_slash option to url_for, so you can generate urls ending in a ↵David Heinemeier Hansson2005-03-261-0/+2
| | | | | | slash. Note that is currently not recommended unless you need it for special reasons since it breaks caching #937 [stian@grytoyr.net] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1001 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added documentation on models in sessions #929 [c.r.mcgrath@gmail.com]David Heinemeier Hansson2005-03-261-0/+7
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1000 5ecf4fe2-1ee6-0310-87b1-e25e094e27de