aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller
Commit message (Collapse)AuthorAgeFilesLines
* Restore the more readable before_ and after_filters methods since they ↵Jeremy Kemper2008-07-141-10/+2
| | | | aren't called frequently
* Small tweak to e0fef66Joshua Peek2008-07-131-3/+3
|
* Made ActionView::Base#first_render a little more private. And added ↵Joshua Peek2008-07-132-13/+6
| | | | _last_render to track the most recent render. Will fix #609 as a side effect. [#609 state:resolved]
* Set config.action_view.warn_cache_misses = true to receive a warning if you ↵Joshua Peek2008-07-121-2/+2
| | | | perform an action that results in an expensive disk operation that could be cached
* Refactor template preloading. New abstractions include Renderable mixins and ↵Joshua Peek2008-07-124-14/+9
| | | | a refactored Template class.
* Restore support for partial matches in assert_redirected_toMichael Koziarski2008-07-121-2/+9
| | | | If both the actual redirection and the asserted redirection are hashes, succeed if the asserted redirection is a strict subset of the actual redirection.
* Added notes to Routing documentation and routes.rb regarding defaults routes ↵Clemens Kofler2008-07-101-0/+4
| | | | | | opening the whole application for GET requests Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Move accept header parsing shortcut to Mime::Type.parseJeremy Kemper2008-07-092-41/+43
|
* Don't repeatedly convert only/except optionsJeremy Kemper2008-07-091-3/+28
|
* Remove some Symbol#to_proc usage in runtime code. [#484 state:resolved]Cheah Chu Yeow2008-07-092-10/+18
|
* Request#accepts special-cases a single mime typeJeremy Kemper2008-07-091-4/+10
|
* Reenable the use of the Accept header to give people a chance to update ↵Michael Koziarski2008-07-091-3/+3
| | | | their applications and provide feedback.
* Ensure url_for(nil) falls back to url_for({}). [#472 state:resolved]Cheah Chu Yeow2008-07-091-1/+2
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Disable the Accept header by defaultMichael Koziarski2008-07-074-14/+41
| | | | | | | | The accept header is poorly implemented by browsers and causes strange errors when used on public sites where crawlers make requests too. You should use formatted urls (e.g. /people/1.xml) to support API clients. Alternatively to re-enable it you need to set: config.action_controller.use_accept_header = true A special case remains for ajax requests which will have a javascript format for the base resource (/people/1) if the X-Requested-With header is present. This lets ajax pages still use format.js despite there being no params[:format]
* Fix rdoc for Filters::ClassMethodsJeremy Kemper2008-07-041-195/+194
|
* Simplify the implementation of assert_redirected_to to normalise the urls ↵Michael Koziarski2008-07-042-91/+37
| | | | | | before comparing. Also allows for a simpler implementation of redirect_to without most of the recursion. Also allows for assert_redirected_to @some_record
* Remove old broken follow_redirect from functional tests. Still works in ↵Michael Koziarski2008-07-041-9/+0
| | | | | | integration tests. The follow_redirect in functional tests only worked if you used redirect_to :id=>foo, :action=>bar, rather than named routes.
* Allow caches_action to accept cache store options. [#416 state:resolved]josevalim2008-07-041-7/+11
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Reduce the number of callsites for new TemplateFilesJoshua Peek2008-07-031-2/+3
|
* Move template_format logic out to the request so it's alongside the ↵Michael Koziarski2008-07-031-0/+13
| | | | | | 'regular' request format. Use xhr? instead of the expensive trip through Request#accepts.
* Remove unneeded ObjectWrapper class.Michael Koziarski2008-07-031-1/+1
| | | | Was previously needed to work around the semantics of a deprecated (now removed) API to render :partial
* Use :namespace instead of :path_prefix for finding controller. [#544 ↵Tarmo Tänav2008-07-031-2/+1
| | | | | | | | | | state:resolved] :namespace is supposed to be the module where controller exists. :path_prefix can contain anything, including variables, which makes it unsuitable for determining the module for a controller. Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Deprecate :use_full_path render option. The supplying the option no longer ↵Joshua Peek2008-07-021-5/+5
| | | | has an effect.
* Added application/jsonrequest as a synonym for application/jsonMike Subelsky2008-07-021-1/+2
| | | | [#536 state:resolved]
* Add :as option to render a collection of partials with a custom local ↵Pratik Naik2008-07-021-1/+4
| | | | variable name. [#509 state:resolved] [Simon Jefford, Pratik Naik]
* Make sure render :template works with :locals. [#524 state:resolved]Tim Haines2008-07-021-1/+4
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Improved test coverage and added RackRequest support for CGI environment ↵Joshua Peek2008-07-011-5/+30
| | | | variables.
* Hide InlineTemplate class from ActionController and use ActionView's render APIJoshua Peek2008-06-251-2/+1
|
* Made ActionView::Base#render_file privateJoshua Peek2008-06-255-7/+7
|
* Patched HTML::Document#initialize call to Node.parse so that it includes the ↵Jimmy Baker2008-06-241-1/+1
| | | | strict argument. [#330]
* Improve readabilityJeremy Kemper2008-06-241-8/+10
|
* Fixed polymorphic_url to be able to handle singleton resources.Tammer Saleh2008-06-221-12/+25
| | | | | | | Example usage: polymorphic_url([:admin, @user, :blog, @post]) # => admin_user_blog_post_url(@user, @post) [#461 state:resolved]
* fix mergerick2008-06-1910-48/+71
|\
| * Replaced TemplateFinder abstraction with ViewLoadPathsJoshua Peek2008-06-173-16/+12
| |
| * Fix url_for with no arguments when default_url_options is not explicitly ↵Luke Redpath2008-06-171-2/+2
| | | | | | | | | | | | defined. [#339 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
| * verify :redirect_to => :back should redirect to the referrer. [#280 ↵Amos King2008-06-171-1/+1
| | | | | | | | | | | | state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
| * Correct code example in dom_id docs. [#437 state:resolved]Andrew Kaspick2008-06-171-2/+2
| |
| * Performance: integration test benchmarking and profiling. [Jeremy Kemper]Jeremy Kemper2008-06-142-4/+21
| |
| * Make rescue template xhtml compatible [Sam Ruby] [#415 status:resolved]Pratik Naik2008-06-131-1/+1
| |
| * Revert "Lazy load cache and session stores"David Heinemeier Hansson2008-06-121-2/+7
| | | | | | | | This reverts commit 19895f087c338d8385dff9d272d30fb87cb10330.
| * Improve ActionCaching's format-handlingJonathan del Strother2008-06-111-12/+29
| | | | | | | | | | | | | | | | Make ActionCaching more aware of different mimetype formats. It will now use request.format to look up the cache type, in addition to the path extension. When expiring caches, the request format no longer affects which cache is expired. Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
| * Make sure cache_template_loading works and don't use to_prepare callbackPratik Naik2008-06-111-4/+1
| |
| * Ensure view path cache is rebuilt in production mode which was broke by df44df9.Joshua Peek2008-06-101-4/+4
| |
| * Lazy load cache and session storesPratik Naik2008-06-101-7/+2
| |
| * Ensure ActionView::TemplateFinder view cache is rebuilt on initialize.Joshua Peek2008-06-081-1/+4
| |
| * Drop ActionController::Base.allow_concurrency flagJoshua Peek2008-06-081-7/+0
|/
* Ensure we have an array to collectJeremy Kemper2008-06-061-1/+1
|
* Don't use deprecated String#eachJeremy Kemper2008-06-061-0/+2
|
* Move Class::ModelName to Active Support module core_extJeremy Kemper2008-06-061-18/+2
|
* Cache RecordIdentifier methods in Class#model_name wrapperJeremy Kemper2008-06-061-11/+34
|