aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller
Commit message (Collapse)AuthorAgeFilesLines
...
| * Ensure ActionView::Helpers::AssetTagHelper::AssetTag::Cache is cleared ↵Tim Harper2008-10-201-1/+2
| | | | | | | | | | | | before loading so changes to asset files are picked up by the broswer [#1233 state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com>
* | Added stale?/fresh? and fresh_when methods to provide a layer of abstraction ↵David Heinemeier Hansson2008-10-212-19/+65
|/ | | | above request.fresh? and friends [DHH]
* Sanitize the URLs passed to redirect_to to prevent a potential response ↵Michael Koziarski2008-10-191-2/+2
| | | | | | splitting attack. CGI.rb and mongrel don't do any sanitization of the contents of HTTP headers, so care needs to be taken.
* Make sure named routes with parameters can be used in tests before a request ↵Eloy Duran2008-10-131-0/+3
| | | | | | has been done. [#1208 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Allow use of :path_prefix and :name_prefix outside of namespaced routes. ↵Tom Stuart2008-10-081-3/+1
| | | | | | [#1188 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Make sure last_modified! works with <= rather than just equality.Michael Koziarski2008-10-071-1/+3
|
* Merge docrailsPratik Naik2008-10-051-4/+12
|
* Add tests for ActiveSupport::Rescuable. Use ActiveSupport::Rescuable in ↵Pratik Naik2008-10-041-99/+3
| | | | ActionController::Base.
* Ensure rescue_from handlers are respected inside tests. [#835 state:resolved]Pratik Naik2008-10-042-19/+19
| | | | | | Note : If you're not using rescue_from, you should overrider rescue_action_without_handler() method and not rescue_action(). Afterwards, you can set request.remote_addr to a non "0.0.0.0" value for testing the overridden behavior.
* Return processing lock to dispatcher, the finer grained lock was ↵Aliaksey Kandratsenka2008-10-042-9/+14
| | | | | | | | | | incompatible with the reloading in development mode. This commit also adds ActionController::Dispatcher#dispatch_unlocking -- non-locking version of dispatch. It's named anologously to POSIX {getc,getchar,...}_unlocked functions. Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1170 state:committed]
* call clear_active_connections! in :after_dispatch to give pooled connections ↵Aliaksey Kandratsenka2008-10-042-1/+17
| | | | | | | | | | | back This fixes connection pool exhaustion for web servers which create new thread per connection (e.g. Webrick). integration.rb changes are required to keep test transaction active for several requests. Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1171 state:committed]
* Call controller_path instance method so it can be easily overridden [#1141 ↵David Masover2008-09-301-2/+2
| | | | | | state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Fix etag! and last_modified! to work as advertised.Michael Koziarski2008-09-301-2/+4
| | | | Add tests too.
* Remove unneeded interning.Michael Koziarski2008-09-301-3/+2
|
* Use ActiveSupport::SecureRandom instead of the strange fallback code.Michael Koziarski2008-09-241-22/+2
|
* Added support for http_only cookies in cookie_store Added unit tests for ↵Pelle Braendgaard2008-09-174-3/+10
| | | | | | | secure and http_only cookies in cookie_store Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1046 state:committed]
* Merge docrailsPratik Naik2008-09-131-14/+14
|
* Added ActionController::Translation module delegating to I18n #translate/#t ↵Sven Fuchs2008-09-101-0/+13
| | | | | | and #localize/#l [status:committed #1008] Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
* Only separate loggings with a comma when there are actually two statementsDavid Heinemeier Hansson2008-09-091-1/+2
|
* Revert "Revert "Add layout functionality to mailers.""David Heinemeier Hansson2008-09-091-1/+5
| | | | This reverts commit 36c6aa01ee0a7aee5b0510a8e649c44de318b060.
* Revert "Add layout functionality to mailers."David Heinemeier Hansson2008-09-091-5/+1
| | | | This reverts commit e9a8e0053be3b293ab89fb584f1d660063f107aa.
* Check for uninitialized instance variablesJeremy Kemper2008-09-081-1/+1
|
* Remove recognized_optimized method before redefining itJeremy Kemper2008-09-081-2/+15
|
* Use defined? check since @view_paths may be uninitializedJeremy Kemper2008-09-081-1/+5
|
* Ensure routing optimizations are cleared when new routes are added [#981 ↵Matt Jones2008-09-072-2/+11
| | | | | | state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Use a more sensible resolution on the new millisecond benchmarksDavid Heinemeier Hansson2008-09-051-5/+5
|
* Changed all benchmarking reports to be in millisecondsDavid Heinemeier Hansson2008-09-051-24/+36
|
* Merge docrailsPratik Naik2008-09-034-64/+69
|
* Some performance goodness for inheritable attributes.Clemens Kofler2008-09-032-8/+8
| | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Some performance goodness for routing.Clemens Kofler2008-09-031-3/+3
| | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Don't set Content-Length on 304 responsesJonathan del Strother2008-09-021-1/+1
| | | | | | | | | Commit 8aad8c claimed to do this, but it checks for the 304 status too early, before handle_conditional_get! has overridden it. [#958 state:resolved] Signed-off-by: Jonathan del Strother <jon.delStrother@bestbefore.tv> Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Get rid of 'Object#send!'. It was originally added because it's in Ruby 1.9, ↵Jeremy Kemper2008-08-3113-34/+34
| | | | | | | | | | but it has since been removed from 1.9. Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> Conflicts: actionpack/test/controller/layout_test.rb
* Add layout functionality to mailers.Pratik Naik2008-08-311-1/+5
| | | | | Mailer layouts behaves just like controller layouts, except layout names need to have '_mailer' postfix for them to be automatically picked up.
* Fixes optimised named routes generating question mark followed by nothing ↵Luke Melia2008-08-311-2/+3
| | | | | | | when provided an empty hash as the last argument. Signed-off-by: Michael Koziarski <michael@koziarski.com> [#481 state:committed]
* Moved layout exemption logic into the viewJoshua Peek2008-08-312-19/+7
|
* Prefix ActionView::Base private methods with an underscoreJoshua Peek2008-08-312-2/+2
|
* Fix AM tests and add tests for rendering loggingPratik Naik2008-08-311-0/+2
|
* Add lost log messages about template renderingPratik Naik2008-08-311-1/+0
|
* Move layout rendering logic to ActionView::BasePratik Naik2008-08-313-53/+29
|
* Move copying ivar logic from ActionController::Base to ActionView::BasePratik Naik2008-08-314-37/+13
|
* Remove unused use_full_path argumentPratik Naik2008-08-311-5/+5
|
* Dont pass controller partial layout option to viewPratik Naik2008-08-302-2/+2
|
* Remove double layout checkPratik Naik2008-08-301-6/+1
|
* Add support for shallow nesting of routes. [#838 state:resolved]Pratik Naik2008-08-301-12/+61
| | | | | | | | | | | | | | | | | | Adds :shallow option to resource route definition. If true, paths for nested resources which reference a specific member (ie. those with an :id parameter) will not use the parent path prefix or name prefix. Example : map.resources :users, :shallow => true do |user| user.resources :posts end * GET /users/1/posts (maps to PostsController#index action as usual) named route "user_posts" is added as usual. * GET /posts/2 (maps to PostsController#show action as if it were not nested) Additionally, named route "post" is added too.
* Make assert_select_rjs code more readable, make use of unused constants and ↵miloops2008-08-291-52/+26
| | | | | | | | use more simple Regexps. [#540 state:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Improve assert_select_rjs failure messages for show, hide, toggle, and removeTim Haines2008-08-291-1/+7
| | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> [#931 state:committed]
* Deprecate render_component.Pratik Naik2008-08-292-2/+9
| | | | | Please install render_component plugin from http://github.com/rails/render_component/tree/master if your application uses this functionality.
* Routes may be restricted to lists of HTTP methods instead of a single method ↵Brennan Dunn2008-08-282-6/+8
| | | | | | | | or :any. [#407 state:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Accept an array of method symbols for collection/member actions of resourcesBrennan Dunn2008-08-281-8/+13
| | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Request#remote_ip handles the uncommon case that REMOTE_ADDR is a ↵Michael S. Klishin2008-08-271-3/+5
| | | | | | | | comma-separated list. [#523 state:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>