aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/base.rb
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Added a bit more to the session documentation on how to clear sessionsDavid Heinemeier Hansson2005-03-201-2/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@922 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added render_partial/render_partial_collection from controllers for easier ↵David Heinemeier Hansson2005-03-091-0/+10
| | | | | | Ajaxing git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@880 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed rails_generator to be usable without RubyGems #686 [Cristi BALAN]. ↵David Heinemeier Hansson2005-03-061-3/+0
| | | | | | Moved all active support dependencies into active support git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@838 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Updated documentationDavid Heinemeier Hansson2005-02-241-26/+24
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@780 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Base#render_to_string to parse a template and get the result back as a ↵David Heinemeier Hansson2005-02-231-4/+8
| | | | | | string #479 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@766 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that send_file/data can work even if render* has been called before in ↵David Heinemeier Hansson2005-02-231-39/+64
| | | | | | action processing to render the content of a file to be send for example #601 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@763 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Keep the singular style, like before_filter, etcDavid Heinemeier Hansson2005-02-231-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@758 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added new keyword to specify load paths as being component based. Added ↵David Heinemeier Hansson2005-02-201-1/+15
| | | | | | better logging for component calls git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@713 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that a bunch of methods from ActionController::Base was accessible as ↵David Heinemeier Hansson2005-02-171-3/+15
| | | | | | actions (callable through a URL) when they shouldn't have been #644 [Nicholas Seckar]. Base#hide_actions(*names) to hide public methods from a controller that would otherwise have been callable through the URL. For the majority of cases, its preferred just to make the methods you don't want to expose protected or private (so they'll automatically be hidden) -- but if you must have a public method, this is a way to make it uncallable. Base#hidden_actions retrieve the list of all hidden actions for the controller #644 [Nicholas Seckar] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@646 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Moved Active Support into its own gemDavid Heinemeier Hansson2005-02-151-3/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@624 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* A hopefully more successful attempt at the Routing branch mergeDavid Heinemeier Hansson2005-02-151-6/+26
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@617 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Backed out of routing merge.. investigating missing patchesDavid Heinemeier Hansson2005-02-151-22/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@616 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Merged back the Routing branchDavid Heinemeier Hansson2005-02-151-5/+22
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@614 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed documentation snafus #575, #576, #577, #585David Heinemeier Hansson2005-02-071-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@525 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that the content-header was being set to application/octet_stream ↵David Heinemeier Hansson2005-01-221-1/+1
| | | | | | instead of application/octet-stream on send_date/file [Alexey] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@475 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that all redirect and render calls now return true, so you can use the ↵David Heinemeier Hansson2005-01-201-3/+18
| | | | | | pattern of "do and return". Added that renders and redirects called in before_filters will have the same effect as returning false: stopping the chain. Added that only one render or redirect can happen per action. The first call wins and subsequent calls are ignored. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@462 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added more informative error message for "file not found" situation in ↵David Heinemeier Hansson2005-01-161-1/+1
| | | | | | send_file #484 [Alexey] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@427 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that send_file would "remember" all the files sent by adding to the ↵David Heinemeier Hansson2005-01-131-4/+4
| | | | | | headers again and again #458 [bitsweat] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@400 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added that all renders and redirects now return false, so they can be used ↵David Heinemeier Hansson2005-01-101-0/+2
| | | | | | as the last line in before_filters to stop execution. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@364 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added authentication framework to protect actions behind a condition and ↵David Heinemeier Hansson2005-01-091-1/+1
| | | | | | redirect on failure. See ActionController::Authentication for more. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@351 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added first stab at page and fragment cachingDavid Heinemeier Hansson2005-01-081-2/+8
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@346 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added class declaration for the MissingFile exception #388 [Kent Sibilev]David Heinemeier Hansson2005-01-011-1/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@297 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added second boolean parameter to Base.redirect_to_url and Response#redirect ↵David Heinemeier Hansson2004-12-311-3/+4
| | | | | | to control whether the redirect is permanent or not (301 vs 302) #375 [Hodel] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@293 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Tagged the 0.9.1 releaseDavid Heinemeier Hansson2004-12-171-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@204 5ecf4fe2-1ee6-0310-87b1-e25e094e27de