José Valim
3775058f1f
Remove usage of deprecated module.
2012-03-07 15:26:56 +01:00
codesnik
96d4da1719
Made an example a little more realistic
2012-01-11 20:24:17 +05:30
José Valim
ab30570b69
Fix extend -> include.
2011-12-09 21:42:18 +01:00
David Heinemeier Hansson
22a6079a20
Make ActiveSupport::Benchmarkable a default module for ActionController::Base, so the #benchmark method is once again available in the controller context like it used to be *DHH*
2011-12-09 18:17:57 +01:00
Xavier Noria
b6916e0b92
removes a Serialization constant left in the previous revert
2011-11-25 15:06:30 -08:00
Jose and Yehuda
8ff7693a8d
Initial commit of serializer support
2011-10-15 18:40:37 +02:00
Alexey Vakhov
22b6e829dc
Fix params hash example in AC::Base comment
2011-10-08 10:12:58 +04:00
dharmatech
dfd03fdbd3
actionpack/lib/action_controller/base.rb: docs typo
2011-08-20 00:17:44 -05:00
Jesse Storimer
ac81af40c0
Ensure that status codes are logged properly
...
Needed to move AC::Metal::Instrumentation before AM::Metal::Rescue
so that status codes rendered from rescue_from blocks are logged
properly.
2011-07-18 13:42:07 -04:00
Matt Jankowski
620bee45fe
more detail on how the flow between redirect and show works, and minor grammar
2011-06-21 10:47:37 -04:00
José Valim
a55f2de0c5
Improve performance for filtered parameters and add tests.
2011-05-03 01:04:57 +02:00
José Valim
1afb56f481
Instrumentation should have callbacks.
2011-05-03 01:04:57 +02:00
Prem Sichanugrist
8c9e4d5202
Add ActionController::ParamsWrapper to wrap parameters into a nested hash
...
This will allow us to do a rootless JSON/XML request to server.
2011-05-03 03:21:43 +07:00
José Valim
389d15ef13
Body... wanna *stream* my body? Body... such a thrill my body!
...
Added stream as class level method to make it explicit when to stream.
Render also accepts :stream as option.
2011-04-18 08:55:41 +02:00
José Valim
7a152ab012
Rename it to DataStreaming.
2011-04-18 08:17:47 +02:00
Akira Matsuda
bd3cdeea35
s/ERb/ERB/g
...
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
2011-04-03 12:47:51 +09:00
Prem Sichanugrist
7cbdfa8303
Add controller-specific force_ssl method to force web browser to use HTTPS 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.
2011-03-28 04:58:47 +08:00
Akira Matsuda
4e50c6c08a
.erb => .html.erb
2010-12-25 04:58:11 +09:00
Diego Carrion
aa654ab065
updated instructions on how to change the default session store
2010-09-18 12:46:21 -03:00
Diego Carrion
a63749483c
updated instructions to generate the migration for the ActiveRecord session store table
2010-09-18 12:46:21 -03:00
Mikel Lindsaar
1a8d77d825
Adding linkage to redirect_to from Base and adding status code option reference
2010-09-09 14:05:06 +10:00
Piotr Sarnacki
98ab4ded37
Set only helpers_path on inherited hook in action_controller/railtie.rb and use helper(:all) just after that
2010-09-03 22:59:13 +02:00
Piotr Sarnacki
e5af8b7d85
Moved ActionMailer and ActionController railties options to inherited hook
...
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.
2010-09-03 22:59:12 +02:00
Piotr Sarnacki
c7664d112f
Include application's helpers and router helpers by default, but include engine's ones for controllers inside isolated namespace
2010-09-03 22:59:10 +02:00
José Valim
ba52748d05
Remove deprecated support to <% form_for %> and several ActionController::Base methods.
2010-08-29 21:08:14 -03:00
José Valim
625f7b5a5b
Be sure to call helper :all just on direct children. (Tests by Jesse Storimer)
2010-08-26 18:20:22 -03:00
Joost Baaij
a68919ec84
Restored top-level documentation for ActionController::Base.
...
This information was lost in commit bd6b61be88 .
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.
2010-08-25 23:28:56 +02:00
José Valim
2af8fd2829
Also move asset_path to AbstractController.
2010-07-24 00:47:48 +02:00
Jeroen van Dijk and Josh Kalderimis
affeb51569
Move config_accessor :asset_host from ActionController::Base to AbstractController which fixes issues with asset_host in ActionMailer
...
Including:
- Moved mailer objects in separate directory
- Added two tests for asset_host configuration option
2010-07-24 00:27:25 +02:00
Piotr Sarnacki
a63566dda8
Moved PolymorphicRoutes to ActionDispatch::Routing
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-07-20 23:12:46 +02:00
José Valim
ab6ff85906
No need to create a new module in the previous commit.
2010-07-19 14:50:38 +02:00
Neeraj Singh
33c5689e2d
Exceptions from views should be rescued based on the original exception. If a handler for original exception is missing then apply ActiveView::TemplateError
...
[#2034 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-07-19 14:50:38 +02:00
José Valim
a5dda97602
Define a convention for descendants and subclasses.
...
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.
2010-07-05 13:01:27 +02:00
José Valim
6788db824a
Move Rails::LogSubscriber to ActiveSupport::LogSubscriber, allowing frameworks like ActiveRecord and ActiveResource to log outsude Rails::Application [ #4816 state:resolved]
2010-06-24 13:23:43 +02:00
José Valim
71375c8936
Add an asset_host accessor for consistency.
2010-06-02 14:53:56 -07:00
David Heinemeier Hansson
631dc61885
Extract assets paths and make them available to Action Mailer as well
2010-06-02 16:49:02 -05:00
rick
8d236ccb84
add HTTP Token Authorization support to complement Basic and Digest Authorization.
2010-04-30 07:46:30 -07:00
José Valim
4163ccec23
Clean up the config object in ActionPack. Create config_accessor which just delegates to the config object, reducing the number of deprecations and add specific tests.
2010-04-22 12:00:13 +02:00
José Valim
ece157e950
Move verification to a plugin as well: http://github.com/rails/verification.git
2010-04-10 11:47:20 +02:00
José Valim
6690d66292
Rename config.cookie_secret to config.secret_token and pass it as configuration in request.env. This is another step forward removing global configuration.
2010-04-05 12:00:24 +02:00
wycats
79d194e920
Make it easier to subclass AC::Metal with most, but not all, of the modules in AC::Base
2010-04-04 21:06:26 -07:00
wycats
b96486d457
Whitespace
2010-04-04 20:09:03 -07:00
wycats
4aded43b73
Replace the placeholder base_hook API with on_load. To specify some code that
...
should run during framework load do:
ActiveSupport.on_load(:action_controller) do
# Code run in the context of AC::Base
end
2010-03-29 17:08:50 -07:00
José Valim
395d6648ce
Move application configuration to the application configuration object, remove railtie_name and engine_name and allow to set the configuration object.
2010-03-26 18:47:55 +01:00
José Valim
4ba334c0f4
Ensure controller filters are executed before stuff starts to happen.
2010-03-13 21:28:34 +01:00
Justin Ko
ea4f8ef33f
Reinstate dom_id in controllers.
...
[#3040 state:committed]
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-03-09 10:49:36 -08:00
wycats
39d6f9e112
Make many parts of Rails lazy. In order to facilitate this,
...
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
2010-03-07 06:24:30 -08:00
Carlhuda
48bb3b3904
Move stuff from compatibility.rb to deprecated.rb
2010-03-04 16:05:52 -08:00
Carlhuda
29158d4158
Remove a failed attempt at refactoring AC configuration
2010-03-03 15:49:24 -08:00
Carl Lerche
9dae645c5f
Actually move ImplicitRender into it's own file
2010-03-03 00:43:05 -08:00