aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/metal
Commit message (Collapse)AuthorAgeFilesLines
* Refactor ActionMailer to not use hide_actionsPiotr Sarnacki2010-09-031-14/+1
|
* Fix generating urls with mounted helpers in view contextPiotr Sarnacki2010-09-031-1/+1
| | | | | | | | | | There were actually 2 problems with this one: * script_name was added to options as a string and then it was used in RouteSet#url_for with usage of <<, which was changing the original script_name * the second issue was with _with_routes method. It was called in RoutesProxy to modify _routes in view_context, but url_helpers in views is just delegating it to controller, so another _with_routes call is needed there
* Include application's helpers and router helpers by default, but include ↵Piotr Sarnacki2010-09-031-1/+5
| | | | engine's ones for controllers inside isolated namespace
* Ensure that env is always available in controllersPiotr Sarnacki2010-09-031-1/+1
|
* Added some more tests for url generation between Engine and ApplicationPiotr Sarnacki2010-09-031-4/+4
|
* Get rid of :skip_prefix options in routesPiotr Sarnacki2010-09-031-8/+4
|
* New way of generating urls for Application from Engine.Piotr Sarnacki2010-09-031-2/+11
| | | | | | | | | It's based specifying application's script_name with: Rails.application.default_url_options = {:script_name => "/foo"} default_url_options method is delegated to routes. If router used to generate url differs from the router passed via env it always overwrites :script_name with this value.
* Revert "Setup explicit requires for files with exceptions. Removed them from ↵José Valim2010-09-024-6/+0
| | | | | | | | autoloading." Booting a new Rails application does not work after this commit [#5359 state:open] This reverts commit 38a421b34d0b414564e919f67d339fac067a56e6.
* Setup explicit requires for files with exceptions. Removed them from ↵Łukasz Strzałkowski2010-09-024-0/+6
| | | | | | autoloading. Signed-off-by: José Valim <jose.valim@gmail.com>
* Remove deprecated support to <% form_for %> and several ↵José Valim2010-08-291-6/+10
| | | | ActionController::Base methods.
* escape constant namesJoost Baaij2010-08-261-5/+5
|
* Reflect how CSRF protection now works and refer to the Security Guide for ↵Joost Baaij2010-08-261-36/+18
| | | | more information
* cleanup of ActionController::Metal inline documentationJoost Baaij2010-08-264-36/+37
|
* Use attribute readers as they are faster in general.José Valim2010-08-191-8/+2
|
* Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵Santiago Pastorino2010-08-141-2/+2
| | | | 's/[ \t]*$//' -i {} \;)
* API Docs: Use 'HTTP_AUTHORIZATION' and not :authorize as key in integration ↵Rohit Arondekar2010-07-301-1/+1
| | | | tests.
* doc: cleanup respond_to documentationWincent Colaiuta2010-07-261-9/+12
| | | | Signed-off-by: Wincent Colaiuta <win@wincent.com>
* Add a test for elapsed and require missing benchmark file.José Valim2010-07-201-0/+1
|
* Add missing require to metal/streaming.rbJosé Valim2010-07-201-0/+2
|
* Remove unused orig_handler and unneeded parenthesesSantiago Pastorino2010-07-201-3/+3
|
* No need to create a new module in the previous commit.José Valim2010-07-192-14/+9
|
* Exceptions from views should be rescued based on the original exception. If ↵Neeraj Singh2010-07-191-0/+14
| | | | | | | | a handler for original exception is missing then apply ActiveView::TemplateError [#2034 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Fixed many references to the old config/environment.rb and Rails::InitializerBenjamin Quorning2010-07-131-1/+1
|
* Fix setting helpers_path to a string or pathnameJeremy Kemper2010-07-071-2/+3
|
* Fixes for "router" and "routes" terminologyWincent Colaiuta2010-07-031-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit f7ba614c2db improved the internal consistency of the different means of accessing routes, but it introduced some problems at the level of code comments and user-visible strings. This commit applies fixes on three levels: Firstly, we remove or replace grammatically invalid constructs such as "a routes" or "a particular routes". Secondly, we make sure that we always use "the router DSL" or "the router syntax", because this has always been the official terminology. Finally, we make sure that we only use "routes" when referring to the application-specific set of routes that are defined in the "config/routes.rb" file, we use "router" when referring on a more abstract level to "the code in Rails used to handle routing", and we use "routing" when we need an adjective to apply to nouns such as "url_helpers. Again this is consistent with historical practice and other places in the documentation. Note that this is not a sweep over the entire codebase to ensure consistent usage of language; it is just a revision of the changes introduced in commit f7ba614c2db. Signed-off-by: Wincent Colaiuta <win@wincent.com> Signed-off-by: José Valim <jose.valim@gmail.com>
* Unify routes naming by renaming router to routesPiotr Sarnacki2010-07-021-4/+4
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Use caller for helpers_dir deprecation warningsJeremy Kemper2010-06-281-2/+2
|
* Small changes to responder:José Valim2010-06-261-5/+13
| | | | | | * resources is always an array; * Lazy retrieve request and formats; * Alias api_location and navigation_location to resource_location, making easier to change its behavior without affecting each other and without a need to reimplement any of the behavior methods.
* Merge remote branch 'rails/master'Xavier Noria2010-06-201-4/+0
|\ | | | | | | | | Conflicts: actionpack/lib/abstract_controller/base.rb
| * Remove a relic of #request being in RackDelegationwycats2010-06-191-4/+0
| |
* | Fix a bunch of minor spelling mistakesEvgeniy Dolzhenko2010-06-151-1/+1
|\ \ | |/ |/|
| * Fix a bunch of minor spelling mistakesEvgeniy Dolzhenko2010-06-111-1/+1
| |
* | edit pass: the names of Rails components have a space, ie, "Active Record", ↵Xavier Noria2010-06-141-1/+1
|/ | | | not "ActiveRecord"
* class_attribute is not a direct replacement of class_inheritable_*.José Valim2010-06-101-3/+3
| | | | | | If you are setting a hash or an array in class_attribute or you need to freeze it, to ensure people won't modify it in place or you need to dup it on inheritance.
* Make named helpers unprotected without becoming actions [#4696 state:resolved]wycats2010-06-071-0/+8
|
* Changes made while working on upgrading cells to Rails 3wycats2010-06-022-4/+5
|
* Fix a bug where responders were not working properly on method override.José Valim2010-05-241-1/+1
|
* Ruby 1.9: helper path may be a pathname, so convert to a string before ↵Jeremy Kemper2010-05-161-1/+1
| | | | quoting for regexp
* Change event namespace ordering to most-significant first [#4504 state:resolved]Justin George2010-05-021-5/+5
| | | | | | | | | More work still needs to be done on some of these names (render_template.action_view and render_template!.action_view particularly) but this allows (for example) /^sql/ to subscribe to all the various ORMs without further modification Signed-off-by: José Valim <jose.valim@gmail.com>
* add HTTP Token Authorization support to complement Basic and Digest ↵rick2010-04-301-0/+158
| | | | Authorization.
* Always downstream given options in :json, :xml and :js renderers and add ↵José Valim2010-04-221-2/+2
| | | | tests for it.
* Clean up the config object in ActionPack. Create config_accessor which just ↵José Valim2010-04-223-78/+48
| | | | delegates to the config object, reducing the number of deprecations and add specific tests.
* It should be possible to render :json with optionswycats2010-04-201-1/+1
|
* Move verification to a plugin as well: http://github.com/rails/verification.gitJosé Valim2010-04-101-130/+0
|
* Fix a bug in ActionDispatch::Static where Rails cannot find assets if ↵José Valim2010-04-081-2/+0
| | | | started in another directory which is not the RAILS_ROOT.
* Move the error raising to api_behavior.José Valim2010-04-071-1/+2
|
* Merge commit 'rails/master'Xavier Noria2010-04-062-7/+13
|\
| * Rename config.cookie_secret to config.secret_token and pass it as ↵José Valim2010-04-052-7/+13
| | | | | | | | configuration in request.env. This is another step forward removing global configuration.
* | revises some <%= in rdocXavier Noria2010-04-051-1/+1
|/
* Fix signed cookies by explicitly passing config to the cookie jarJeremy Kemper2010-04-041-2/+3
|