aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/base.rb
Commit message (Collapse)AuthorAgeFilesLines
* Remove all remaining references to @params in the documentation.Marcel Molina2006-04-251-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4268 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add documentation for redirect_to :back's RedirectBackError exception.Marcel Molina2006-04-251-0/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4267 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added ActionController.filter_parameter_logging that makes it easy to remove ↵David Heinemeier Hansson2006-04-071-1/+48
| | | | | | passwords, credit card numbers, and other sensitive information from being logged when a request is handled #1897 [jeremye@bsa.ca.gov] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4200 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* CHANGED DEFAULT: Don't parse YAML input by default, but keep it available as ↵David Heinemeier Hansson2006-04-041-7/+9
| | | | | | an easy option [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4157 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed docsDavid Heinemeier Hansson2006-03-281-16/+15
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4079 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Spell existence properly (closes #4442)David Heinemeier Hansson2006-03-271-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4072 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Enable application/x-yaml processing by defaultJamis Buck2006-03-251-6/+7
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4024 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Updated Kernel#returning for the AP performance patch [DHH]David Heinemeier Hansson2006-03-201-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3991 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* fix usage of #returning in ActionController::BaseRick Olson2006-03-201-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3990 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Performance speedup for ActionController (closes #4174) [Stefan Kaes] ↵David Heinemeier Hansson2006-03-201-27/+21
| | | | | | Includes caching of filter chains -- be on the lookout for problems with that! git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3989 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Simplify controller_pathNicholas Seckar2006-03-131-7/+1
| | | | | | | Cache File.directory? calls to avoid filesystem calls when using layouts git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3861 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Always use application/xml, then the charset is determined by the XML docDavid Heinemeier Hansson2006-03-131-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3860 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* The mere existance of a rjs file shouldnt cause the layout to disappear. ↵David Heinemeier Hansson2006-03-131-1/+1
| | | | | | Made it easier to specify a :with on observer_field git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3859 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* The mere existance of a rjs file shouldnt cause the layout to disappear. ↵David Heinemeier Hansson2006-03-131-1/+3
| | | | | | Made it easier to specify a :with on observer_field git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3858 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Rendering xml shouldnt happen inside any layout. Added class proxying to ↵David Heinemeier Hansson2006-03-131-0/+4
| | | | | | RJS, so you can call page.field.clear("my_field") to generate Field.clear("my_field");. Added :content_type option to render, so you can change the content type on the fly. Do type/subtype reordering of Accept header preferences for xml types (aka make Firefox work with respond_to). CHANGED DEFAULT: The default content type for .rxml is now application/xml instead of type/xml, see http://www.xml.com/pub/a/2004/07/21/dive.html for reason git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3852 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Mime types are separated by a comma, not semicolon, in the Accept header. ↵David Heinemeier Hansson2006-03-121-4/+4
| | | | | | Also switch all internal configuration of mime types away from strings and over to Mime::Type [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3847 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added better support for using the same actions to output for different ↵David Heinemeier Hansson2006-03-111-2/+11
| | | | | | sources depending on the Accept header [DHH] Added Base#render(:xml => xml) that works just like Base#render(:text => text), but sets the content-type to text/xml and the charset to UTF-8 [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3838 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* XmlSimple _should_ be the default since XmlNode is not compatible with ↵David Heinemeier Hansson2006-03-071-9/+11
| | | | | | regular parameters -- also known as Why Did My Etech Demo Not Work? [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3806 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Doc fixesDavid Heinemeier Hansson2006-03-051-4/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3782 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* ActionController::Base.param_parsers now accept symbols. currently supported ↵Tobias Lütke2006-03-051-8/+3
| | | | | | are :xml_node, :xml_simple and :yaml git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3778 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added new infrastructure support for REST webservices.Tobias Lütke2006-03-051-2/+33
| | | | | | | | | | | | | | | | | By default application/xml posts are handled by creating a XmlNode object with the same name as the root element of the submitted xml. M$ ActionController::Base.param_parsers['application/atom+xml'] = Proc.new do |data| node = REXML::Document.new(post) { node.root.name => node.root } end XmlSimple and Yaml web services were retired, ActionController::Base.param_parsers carries an example which shows how to get this functio$ request.[formatted_post?, xml_post?, yaml_post? and post_format] were all deprecated in favor of request.content_type [Tobias Luetke] Closes #4081 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3777 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Remove ::Controllers related cruft; fix AP testsNicholas Seckar2006-02-261-2/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3668 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ensure backwards compatibility with symbolized action names for ↵David Heinemeier Hansson2006-02-191-1/+1
| | | | | | render_action (closes #3869) [anna@wota.jp] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3606 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make RJS treat symbolic action names nicely #3861 [Rick Olson]David Heinemeier Hansson2006-02-171-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3596 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Stopped the massive bleeding of concerns into ActionController::Base. Base ↵David Heinemeier Hansson2006-02-121-36/+39
| | | | | | no longer knows about flash, filters, or components. This may well have introduced some instability, please do test with apps, especially the ones using components. [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3580 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* The components module should also contain the options that pertain to it, so ↵David Heinemeier Hansson2006-02-121-17/+4
| | | | | | collect it all with ClassMethods and InstanceMethods git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3576 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Major components cleanup and speedup. Closes #3527.Jeremy Kemper2006-02-091-11/+35
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3563 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Just go with Subclasses instead of OnlySubclassesDavid Heinemeier Hansson2006-02-041-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3534 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add Reloadable::OnlySubclasses which handles the common case where a base ↵Nicholas Seckar2006-02-021-8/+3
| | | | | | class should not be reloaded, but its subclasses should be. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3521 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ensure assigns are copied to the template when using render :update. Closes ↵Nicholas Seckar2006-01-301-0/+3
| | | | | | #3620. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3497 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added reusable reloading support through the inclusion of the Relodable ↵David Heinemeier Hansson2006-01-291-0/+7
| | | | | | module that all subclasses of ActiveRecord::Base, ActiveRecord::Observer, ActiveController::Base, and ActionMailer::Base automatically gets [DHH]. Added auto-loading support for classes in modules, so Conductor::Migration will look for conductor/migration.rb and Conductor::Database::Settings will look for conductor/database/settings.rb [Nicholas Seckar]. Refactored extensions to module, class, and object in active support [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3493 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add the ability to call JavaScriptGenerator methods from helpers called in ↵Sam Stephenson2006-01-231-2/+3
| | | | | | update blocks git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3476 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Backing out of [3470] until visual_effect, et al can workSam Stephenson2006-01-231-3/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3471 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add the ability to call JavaScriptGenerator methods from helpers called in ↵Sam Stephenson2006-01-231-2/+3
| | | | | | update blocks git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3470 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Raise a RedirectBackError if redirect_to :back is called when theres no ↵David Heinemeier Hansson2006-01-221-1/+8
| | | | | | HTTP_REFERER defined (closes #3049) [kevin.clark@gmail.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3459 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Pass along blocks from render_to_string to renderSam Stephenson2006-01-201-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3442 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add render :update for inline RJSSam Stephenson2006-01-201-7/+30
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3441 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Remove Upload Progress. Closes #2871.Marcel Molina2006-01-131-6/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3406 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* only log session_id if @session object responds to .session_id. Tobias Lütke2005-12-221-1/+1
| | | | | | | In functional test cases you often pass in a hash as session object which doesn't have this method. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3339 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add session ID to default logging, but remove the verbose description of ↵David Heinemeier Hansson2005-12-221-0/+1
| | | | | | every step [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3334 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Don't try to strip out the controller name if default_action_name is nilMarcel Molina2005-12-201-2/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3321 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Don't include a layout when rendering an rjs template using render's ↵Marcel Molina2005-12-171-0/+10
| | | | | | :template option. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3316 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make ActionController's render honor the :locals option when rendering a ↵Sam Stephenson2005-11-221-3/+7
| | | | | | :file. Closes #1665. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3157 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make rjs templates always implicitly skip out on layouts.Marcel Molina2005-11-181-3/+8
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3084 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Update documentation for render :file. References #2858.Jeremy Kemper2005-11-141-8/+12
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3015 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* CGI::Session::ActiveRecordStore.data_column_name = 'foobar' to use a ↵Jeremy Kemper2005-11-091-1/+5
| | | | | | different session data column than the 'data' default. References #2731. Remove error-prone method_missing passthrough to session model. Cleanup. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2944 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix docs (closes #2725)David Heinemeier Hansson2005-11-071-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2906 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added redirect_to :back as a short-hand for ↵David Heinemeier Hansson2005-11-021-0/+6
| | | | | | redirect_to(request.env["HTTP_REFERER"]) git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2848 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* ensure close_session in AC::Base#processJeremy Kemper2005-11-021-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2842 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix problem where redirecting components can cause an Scott Barron2005-10-301-0/+1
| | | | | | | | | infinite loop [Rick Olson] Closes #2654 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2829 5ecf4fe2-1ee6-0310-87b1-e25e094e27de