aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/base.rb
Commit message (Collapse)AuthorAgeFilesLines
* actionpack/lib/action_controller/base.rb: docs typodharmatech2011-08-201-1/+1
|
* Ensure that status codes are logged properlyJesse Storimer2011-07-181-4/+4
| | | | | | Needed to move AC::Metal::Instrumentation before AM::Metal::Rescue so that status codes rendered from rescue_from blocks are logged properly.
* more detail on how the flow between redirect and show works, and minor grammarMatt Jankowski2011-06-211-7/+9
|
* Improve performance for filtered parameters and add tests.José Valim2011-05-031-1/+4
|
* Instrumentation should have callbacks.José Valim2011-05-031-4/+4
|
* Add `ActionController::ParamsWrapper` to wrap parameters into a nested hashPrem Sichanugrist2011-05-031-0/+1
| | | This will allow us to do a rootless JSON/XML request to server.
* Body... wanna *stream* my body? Body... such a thrill my body!José Valim2011-04-181-0/+1
| | | | | Added stream as class level method to make it explicit when to stream. Render also accepts :stream as option.
* Rename it to DataStreaming.José Valim2011-04-181-1/+1
|
* s/ERb/ERB/gAkira Matsuda2011-04-031-2/+2
| | | | | The author of ERB sais, his eRuby implementation was originally named "ERb/ERbLight" and then renamed to "ERB" when started bundled as a Ruby standard lib. http://www2a.biglobe.ne.jp/~seki/ruby/erb.html
* Add controller-specific `force_ssl` method to force web browser to use HTTPS ↵Prem Sichanugrist2011-03-281-0/+1
| | | | | | | | protocol This would become useful for site which sometime transferring sensitive information such as account information on particular controller or action. This featured was requested by DHH.
* .erb => .html.erbAkira Matsuda2010-12-251-1/+1
|
* updated instructions on how to change the default session storeDiego Carrion2010-09-181-2/+2
|
* updated instructions to generate the migration for the ActiveRecord session ↵Diego Carrion2010-09-181-1/+1
| | | | store table
* Adding linkage to redirect_to from Base and adding status code option referenceMikel Lindsaar2010-09-091-0/+2
|
* Set only helpers_path on inherited hook in action_controller/railtie.rb and ↵Piotr Sarnacki2010-09-031-5/+0
| | | | use helper(:all) just after that
* Moved ActionMailer and ActionController railties options to inherited hookPiotr Sarnacki2010-09-031-5/+1
| | | | | | | | | | | This change is needed, because we must take namespace into account and if controller's/mailer's class is namespaced, engine's paths should be set instead of application's ones. The nice side effect of this is removing unneeded logic in ActionController::Base.inherited - now the helpers_path should be set correctly even for engine's controllers, so helper(:all) will always include correct helpers.
* Include application's helpers and router helpers by default, but include ↵Piotr Sarnacki2010-09-031-2/+6
| | | | engine's ones for controllers inside isolated namespace
* Remove deprecated support to <% form_for %> and several ↵José Valim2010-08-291-3/+1
| | | | ActionController::Base methods.
* Be sure to call helper :all just on direct children. (Tests by Jesse Storimer)José Valim2010-08-261-1/+1
|
* Restored top-level documentation for ActionController::Base.Joost Baaij2010-08-251-0/+163
| | | | | | | | | This information was lost in commit bd6b61be88dfe6eb1ff1dcc5c17542d804a842c7. This might have been intentional, but this class does represent the starting point for all things related to actions, and as such should document it. I couldn't find any trace of this documentation, which seems like a waste. Updated parts here and there to conform to current best practices.
* Also move asset_path to AbstractController.José Valim2010-07-241-1/+0
|
* Move config_accessor :asset_host from ActionController::Base to ↵Jeroen van Dijk and Josh Kalderimis2010-07-241-1/+1
| | | | | | | | AbstractController which fixes issues with asset_host in ActionMailer Including: - Moved mailer objects in separate directory - Added two tests for asset_host configuration option
* Moved PolymorphicRoutes to ActionDispatch::RoutingPiotr Sarnacki2010-07-201-1/+0
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* No need to create a new module in the previous commit.José Valim2010-07-191-3/+1
|
* Exceptions from views should be rescued based on the original exception. If ↵Neeraj Singh2010-07-191-2/+4
| | | | | | | | a handler for original exception is missing then apply ActiveView::TemplateError [#2034 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Define a convention for descendants and subclasses.José Valim2010-07-051-6/+0
| | | | | | The former should be symmetric with ancestors and include all children. However, it should not include self since ancestors + descendants should not have duplicated. The latter is symmetric to superclass in the sense it only includes direct children. By adopting a convention, we expect to have less conflict with other frameworks, as Datamapper. For this moment, to ensure ActiveModel::Validations can be used with Datamapper, we should always call ActiveSupport::DescendantsTracker.descendants(self) internally instead of self.descendants avoiding conflicts.
* Move Rails::LogSubscriber to ActiveSupport::LogSubscriber, allowing ↵José Valim2010-06-241-0/+2
| | | | frameworks like ActiveRecord and ActiveResource to log outsude Rails::Application [#4816 state:resolved]
* Add an asset_host accessor for consistency.José Valim2010-06-021-2/+1
|
* Extract assets paths and make them available to Action Mailer as wellDavid Heinemeier Hansson2010-06-021-1/+2
|
* add HTTP Token Authorization support to complement Basic and Digest ↵rick2010-04-301-0/+1
| | | | Authorization.
* Clean up the config object in ActionPack. Create config_accessor which just ↵José Valim2010-04-221-1/+4
| | | | delegates to the config object, reducing the number of deprecations and add specific tests.
* Move verification to a plugin as well: http://github.com/rails/verification.gitJosé Valim2010-04-101-1/+0
|
* Rename config.cookie_secret to config.secret_token and pass it as ↵José Valim2010-04-051-1/+1
| | | | configuration in request.env. This is another step forward removing global configuration.
* Make it easier to subclass AC::Metal with most, but not all, of the modules ↵wycats2010-04-041-43/+45
| | | | in AC::Base
* Whitespacewycats2010-04-041-1/+1
|
* Replace the placeholder base_hook API with on_load. To specify some code thatwycats2010-03-291-2/+1
| | | | | | | | should run during framework load do: ActiveSupport.on_load(:action_controller) do # Code run in the context of AC::Base end
* Move application configuration to the application configuration object, ↵José Valim2010-03-261-0/+1
| | | | remove railtie_name and engine_name and allow to set the configuration object.
* Ensure controller filters are executed before stuff starts to happen.José Valim2010-03-131-2/+6
|
* Reinstate dom_id in controllers.Justin Ko2010-03-091-0/+1
| | | | | | | [#3040 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Make many parts of Rails lazy. In order to facilitate this,wycats2010-03-071-0/+2
| | | | | | | | | | | | add lazy_load_hooks.rb, which allows us to declare code that should be run at some later time. For instance, this allows us to defer requiring ActiveRecord::Base at boot time purely to apply configuration. Instead, we register a hook that should apply configuration once ActiveRecord::Base is loaded. With these changes, brings down total boot time of a new app to 300ms in production and 400ms in dev. TODO: rename base_hook
* Move stuff from compatibility.rb to deprecated.rbCarlhuda2010-03-041-0/+2
|
* Remove a failed attempt at refactoring AC configurationCarlhuda2010-03-031-1/+0
|
* Actually move ImplicitRender into it's own fileCarl Lerche2010-03-031-23/+0
|
* Change AV formats so they can delegate to the controller. Now users (or ↵Carlhuda2010-03-011-1/+1
| | | | plugins) can override details_for_render in their controllers and add appropriate additional details. Now if only they could *do* something with those details...
* Continued effort to deglobalize the routerCarlhuda2010-02-251-8/+1
|
* WIP: Remove the global routerCarlhuda2010-02-251-1/+1
|
* Update AP to start locking down a public API. This work is parallel to some ↵Yehuda Katz2010-02-161-1/+1
| | | | docs I'm working on.
* ActionMailer should depend just on AbstractController.José Valim2010-01-291-0/+8
|
* Ensure helpers work from configured path.José Valim2010-01-241-1/+1
|
* Ensure strings given to render with slash are rendered relative to the ↵José Valim2010-01-221-23/+0
| | | | configured _prefix.