Commit Graph

652 Commits

Author SHA1 Message Date
Francesco Rodriguez
5906881c96 update coding conventions in metal/live 2012-07-30 17:08:05 -05:00
Francesco Rodriguez
eae19033fb fix typo in metal/live [ci skip] 2012-07-30 16:54:33 -05:00
Aaron Patterson
fa3c4ea6d0 close the response when the response body is set so that normal render calls will work 2012-07-29 21:43:07 -07:00
Aaron Patterson
4509494f70 header hash is duped before being sent up the rack stack 2012-07-29 21:43:07 -07:00
Aaron Patterson
b3d1f5b630 freeze the header object 2012-07-29 21:43:06 -07:00
Aaron Patterson
619e7c8db8 make sure set_response! sets the correct response object 2012-07-29 21:43:06 -07:00
Aaron Patterson
08b107e345 adding a more docs on closing response streams 2012-07-29 21:43:06 -07:00
Aaron Patterson
dd871a3d72 pushing Buffer up to Live 2012-07-29 21:43:06 -07:00
Aaron Patterson
c83e147e47 adding some docs 2012-07-29 21:43:06 -07:00
Aaron Patterson
38cfbb8aa7 Controller actions are processed in a separate thread for live
responses.

Processing controller actions in a separate thread allows us to work
around the rack api - we can allow the user to set status and headers,
then block until the first bytes are written.  As soon as the first
bytes are written, the main thread can return the status, headers, and
(essentially) a queue for the body.
2012-07-29 21:43:05 -07:00
Aaron Patterson
06c9e176ca raise exceptions on header set after response committed 2012-07-29 21:43:05 -07:00
Aaron Patterson
af0a9f9eef added live responses which can be written and read in separate threads 2012-07-29 21:43:05 -07:00
Francesco Rodriguez
46b24c958a use 'HTTP_AUTHORIZATION' instead of :authorization as key when dealing with HTTP Token authentication in integration tests 2012-07-27 12:59:05 -05:00
Aaron Patterson
fee0bc5738 * Do not convert digest auth strings to symbols. CVE-2012-3424
Conflicts:
	actionpack/lib/action_controller/metal/http_authentication.rb
2012-07-26 15:08:40 -07:00
Xavier Noria
3561e85bb1 copy-edits 9674d2c 2012-07-21 07:30:53 +02:00
Shigeya Suzuki
9674d2c70f Clarification to doc of ActionController::MimeResponse.respond_to
- #respond_to's documentation refer to .respond_to, but it was
  written as just <respond_to>. Added class name for clarification.
2012-07-19 09:57:34 +09:00
Selem Delul
783fc29389 Fix code comment to reflect its intent. 2012-07-11 06:19:38 +03:00
Piotr Sarnacki
df40d79fdc Don't raise an error if http auth token isn't well formatted
When someone sends malformed authorization header, like:

    Authorization: Token foobar

given token should be just ignored and resource should not be authorized,
instead of raising error. Before this patch controller would return 401 header
only for well formed tokens, like:

    Authorization: Token token=foobar

and would return 500 in former case.
2012-07-11 01:56:38 +02:00
Vijay Dev
ee20be7c33 Merge branch 'master' of github.com:lifo/docrails 2012-07-07 20:44:49 +05:30
Carlos Antonio da Silva
ea7b48b074 Use "instance_accessor" for flash types class attribute 2012-07-07 09:16:48 -03:00
kennyj
238a4253bf Added support add_flash_types 2012-07-07 17:07:57 +09:00
Aaron Patterson
4f2cd3e9fe group things that are alike 2012-07-03 17:18:31 -07:00
Aaron Patterson
9f4dafb8ef push functional test specific methods to it's own module 2012-07-03 17:13:04 -07:00
Aaron Patterson
e136fbd7fa push the cookie writing stuff out of the controller
merging cookies is responsibility of the test runner
2012-07-03 14:59:32 -07:00
Aaron Patterson
4528cd0f43 extend the controller with special logic on recycle
For some reason, this special logic is only supposed to be executed on
the second request.  For now, we'll extend on recycle, but we should
figure out why this functionality can't be run on every request
2012-07-03 14:59:31 -07:00
Aaron Patterson
9eef9333bd push req / res setting to the test runner
Try to avoid making the controller mutate itself so that we can
eventually make the response async
2012-07-03 14:59:31 -07:00
Aaron Patterson
46eba6c30f extract response setting to a method 2012-07-03 14:59:31 -07:00
Aaron Patterson
b8a5bb2c5e push response creation down since third param is never used. 2012-07-02 11:41:28 -07:00
Nick Howard
167a0b9e83 ActionDispatch::ClosedError no longer is raised. See d142572567 for more info. 2012-06-30 16:04:08 -06:00
Vijay Dev
0a83e89222 moar copy edits [ci skip] 2012-06-14 22:45:42 +05:30
Vijay Dev
6efc5bf404 copy editing [ci skip] 2012-06-14 22:37:17 +05:30
Jakub Kuźma
595b8bc8f8 fixed http token authentication formatting 2012-06-12 13:00:17 +02:00
Daniel Lopes
5c17aa510f on CSRF whitelisting the argument for :if must be a symbol 2012-06-07 15:43:13 -03:00
Daniel Lopes
faf27445d0 fix typos on the CSRF whitelisting doc 2012-06-07 15:33:38 -03:00
Daniel Lopes
39856627e0 Document the CSRF whitelisting on get requests 2012-06-07 15:19:49 -03:00
Jeremy Friesen
4791822368 Extracted redirect logic from ActionController::Force::ClassMethods.force_ssl
Prior to this patch the existing .force_ssl method handles both defining
the filter and handling the logic for performing the redirect.

With this patch the logic for redirecting to the HTTPS protocol is
separated from the filter logic that determines if a redirect should
occur.  By separating the two levels of behavior, an instance method
for ActionController (i.e. #force_ssl_redirect) is exposed and available
for more granular SSL enforcement.

Cleaned up indentation.
2012-05-31 12:39:28 -04:00
Piotr Sarnacki
e4aaac1301 Fix sorting of helpers from different paths
When more than one directory for helpers is provided to a controller, it
should preserver the order of directories. Given 2 paths:

    MyController.helpers_paths = ["dir1/helpers", "dir2/helpers"]

helpers from dir1 should be loaded first. Before this commit, all
helpers were mixed and then sorted alphabetically, which essentially
would require to rename helpers to get desired order.

This is a problem especially for engines, where you would like to be
able to predict accurately which engine helpers will load first.

(closes #6496)
2012-05-28 06:58:48 +02:00
Andrew White
66eb3f02cc Raise ActionController::BadRequest for malformed parameter hashes.
Currently Rack raises a TypeError when it encounters a malformed or
ambiguous hash like `foo[]=bar&foo[4]=bar`. Rather than pass this
through to the application this commit captures the exception and
re-raises it using a new ActionController::BadRequest exception.

The new ActionController::BadRequest exception returns a 400 error
instead of the 500 error that would've been returned by the original
TypeError. This allows exception notification libraries to ignore
these errors if so desired.

Closes #3051
2012-05-20 19:07:04 +01:00
Dmitry Vorotilin
32a433e1c0 Show in log correct wrapped keys 2012-05-20 09:33:56 +04:00
Aaron Patterson
7aa96a130b Merge pull request #2237 from jackdempsey/log_redirect_to
log at debug level what line caused the redirect_to
2012-05-16 16:50:04 -07:00
Jack Dempsey
3fa0007004 log at debug level what line caused the redirect_to 2012-05-16 16:32:17 -07:00
Francesco Rodriguez
fc0391ff7d Removing ==Examples and last blank lines of docs from actionpack 2012-05-15 01:51:54 -05:00
Elia Schito
24e4bc31b9 Move HTTP Token auth docs above the Token module 2012-05-11 14:47:26 +02:00
Kunal Shah
3ca28dec0f If content_type is explicitly passed to the :head method use the value or fallback 2012-05-08 03:11:17 -04:00
Steven Soroka
6471ced656 remove .new from raise ActionController::UnknownFormat 2012-05-06 00:34:08 -05:00
Steven Soroka
3532200576 Raise a rescuable exception when Rails doesn't know what to do with the format, rather than responding with a head :not_acceptable (406) 2012-05-06 00:27:45 -05:00
Carlos Antonio da Silva
81f92cbc2b Use Hash#fetch instead of has_key? check 2012-05-04 16:51:17 -03:00
José Valim
7a093606f6 Merge pull request #4445 from nragaz/role_based_params_wrapping
specify a role for identifying accessible attributes when wrapping params
2012-05-04 21:45:32 +02:00
José Valim
5f62c86b50 Merge pull request #6148 from twinturbo/head-fix
Make ActionController#head pass rack-link
2012-05-03 22:52:08 -07:00
twinturbo
8edd21c66f Remove content-length as well 2012-05-03 17:24:05 -07:00
twinturbo
8eedd1a4a7 Make ActionController#head pass rack-link 2012-05-03 16:18:51 -07:00
Vijay Dev
42ff22f33a Merge branch 'master' of github.com:lifo/docrails 2012-05-01 19:06:03 +05:30
Sergey Nartimov
cbb264e9fa no need to dup options in send_data
options aren't modified inside send_file_headers!
2012-04-30 10:15:41 +03:00
Sergey Nartimov
9f64f20b8b allow send_file/send_data to skip disposition header, closes #2973 2012-04-30 10:12:55 +03:00
Andrew White
24f143789a Add note about using 303 See Other for XHR requests other than GET/POST
IE since version 6 and recently Chrome and Firefox have started following
302 redirects from XHR requests other than GET/POST using the original request
method. This can lead to DELETE requests being redirected amongst other things.

Although it doesn't directly affect the Rails framework since it doesn't return
a 302 redirect to any non-GET/POST request a note has been added to raise
awareness of the issue. Some references:

Original article from @technoweenie:
http://techno-weenie.net/2011/8/19/ie9-deletes-stuff/

Hacker News discussion of the article:
http://news.ycombinator.com/item?id=2903493

WebKit bug report:
https://bugs.webkit.org/show_bug.cgi?id=46183

Firefox bug report and changeset:
https://bugzilla.mozilla.org/show_bug.cgi?id=598304
https://hg.mozilla.org/mozilla-central/rev/9525d7e2d20d

Chrome bug report:
http://code.google.com/p/chromium/issues/detail?id=56373

HTTPbis bug report and changeset:
http://trac.tools.ietf.org/wg/httpbis/trac/ticket/160
http://trac.tools.ietf.org/wg/httpbis/trac/changeset/1428

Roy T. Fielding's history of the issue:
http://ftp.ics.uci.edu/pub/ietf/http/hypermail/1997q3/0611.html

Automated browser tests for the issue:
http://www.mnot.net/javascript/xmlhttprequest/

Fixes #4144
2012-04-30 06:37:19 +01:00
José Valim
e73f547635 Avoid calling content type multiple times 2012-04-29 11:16:13 +03:00
José Valim
d4dd1af341 Merge pull request #2321 from omjokine/master
JSONP should use mimetype application/javascript
2012-04-29 01:13:39 -07:00
Mark Rushakoff
72795d7257 Code-format references to config settings 2012-04-27 22:50:02 -07:00
Mark Rushakoff
c13d36c95f More using <tt>x</tt> instead of +x+ when the latter renders improperly. 2012-04-27 21:33:56 -07:00
Mark Rushakof
8cc4159018 Use <tt>Foo::Bar</tt> instead of +Foo::Bar+
The latter doesn't render as code in HTML output.

Regex used in Rubymine to locate the latter form:

    (\+)(:*\w+:(?::|\w)+)(\+)
2012-04-27 00:00:30 -07:00
Jeremy Kemper
5c51cd0b2f #send_file leans on Rack::Sendfile to X-Accel-Redirect the file's path, so opening the file to set the response body is wasteful. Set a FileBody wrapper instead that responds to to_path and streams the file if needed. 2012-04-12 09:53:00 -07:00
Andrey A.I. Sitnik
f3fb416b89 Remove unnecessary in HTML 5 type attribute with default value 2012-04-05 15:32:37 +04:00
Santiago Pastorino
a9398a7da4 Merge pull request #5716 from jurriaan/tr-gsub-cleanup
Updated/changed unneeded tr/gsubs
2012-04-04 10:43:24 -07:00
Alexey Vakhov
e39b9b0468 Fix AC responder example 2012-04-04 12:40:39 +06:00
Jurriaan Pruis
2d8396fc9f Updated/changed useless tr/gsubs 2012-04-03 15:16:09 +02:00
Alexey Vakhov
e527347554 Remove non-obligatory params in AC respond_to examples 2012-04-03 12:43:13 +06:00
Vijay Dev
cf182988f5 Merge branch 'master' of github.com:lifo/docrails 2012-04-01 19:53:29 +05:30
Alexey Vakhov
891392a164 Remove obsolete reader from AC::MethodNotAllowed exception class 2012-03-31 00:46:34 +04:00
Alexey Vakhov
0d2a4009ca Remove AC::RenderError class second declaration 2012-03-31 00:30:53 +04:00
Tony Primerano
e810843300 CSRF messages are no longer controlled by 422.html because InvalidAuthenticityToken is not raised 2012-03-28 16:35:06 -04:00
Mark Thomson
d25d3fba3e respond_with description: changed 'response' to 'format' 2012-03-18 05:48:32 -05:00
Mark Thomson
9e98d2dae1 Revised comments for respond_with 2012-03-18 05:31:33 -05:00
Mark Thomson
f2bc404ba8 Merge remote-tracking branch 'origin/master' 2012-03-17 22:29:46 -05:00
Mark Thomson
98b4ef7306 Revised description for responds_with 2012-03-17 22:29:17 -05:00
Brian Lopez
cfcdd334de strip null bytes from Location header as well
add tests for stripping \r\n chars since that's already happening
2012-03-15 14:42:57 -07:00
José Valim
fbc9d0f44f Simplify helpers handling. Ensure Metal can run AC hooks. 2012-03-15 08:48:38 +01:00
Santiago Pastorino
4c16791f35 Add ActionController::HTTP
More info http://edgeguides.rubyonrails.org/api_app.html

[Carlos Antonio da Silva & Santiago Pastorino]
2012-03-14 12:46:23 -03:00
Vijay Dev
800c70a8f9 Merge branch 'master' of github.com:lifo/docrails 2012-03-13 23:29:30 +05:30
Mark Thomson
4cb71eaf46 Added documentation for the ActionController::MimeResponds::Collector class. 2012-03-13 02:36:59 -05:00
Mark Thomson
fb094acc56 Updated description of #retrieve_collector_from_mimes 2012-03-13 02:16:38 -05:00
Sergey Nartimov
245941101b configure how unverified request will be handled
can be configured using `:with` option in `protect_from_forgery` method
or `request_forgery_protection_method` config option

possible values:
- :reset_session (default)
- :exception

new applications are generated with:

    protect_from_forgery :with => :exception
2012-03-09 19:33:06 +03:00
José Valim
7638004d7d Set the rendered_format on respond_to. 2012-03-07 15:02:58 +01:00
Santiago Pastorino
bc5ac778c0 Remove unused ActionController::SessionManagement 2012-03-06 17:57:12 -02:00
Santiago Pastorino
b90d24b00e Avoid ImplicitRender just call render directly 2012-03-06 17:52:54 -02:00
Vijay Dev
7c90d91c3c Clean up module docs [ci skip]
Removed some useless docstrings and no-doc'ed some.
2012-03-07 01:04:14 +05:30
Prem Sichanugrist
284041cf91 Always passing a respond block from to responder
We should let the responder to decide what to do with the given
overridden response block, and not short circuit it.

Fixes #5280
2012-03-05 21:06:02 -05:00
Vishnu Atrai
d8996d3cab remove usages of AS::OrderedHash 2012-03-03 23:48:29 +05:30
Vijay Dev
f9e26940b3 Merge branch 'master' of github.com:lifo/docrails 2012-03-03 22:08:24 +05:30
Piotr Sarnacki
0e94208a0f Can't cache url_options on a controller level
It fails if routes from to railties are called in one context,
for example: blog.posts_path and main_app.users_path
2012-03-02 18:47:15 +01:00
Anuj Dutta
1adad4442b Removed max-stale from the setting the cache-headers in the response as max-stale is a cache request header. 2012-03-02 07:22:16 +00:00
José Valim
d7014bc7ea Optimize path helpers. 2012-03-02 01:59:03 +01:00
Vijay Dev
4244a09c53 fix api doc [ci skip] 2012-03-01 01:22:20 +05:30
Andrew White
5093915aae Document the :host option for force_ssl 2012-02-23 13:35:15 +00:00
Andrew White
c04a08470f Update documentation for force_ssl - closes #5023. 2012-02-23 13:25:13 +00:00
Pat Allan
ab838900f8 SSL should not be disabled by default in any environment. 2012-02-23 13:25:13 +00:00
Xavier Noria
7f2548e34d Merge pull request #5130 from dlee/revised_patch_verb
Add config.default_method_for_update to support PATCH
2012-02-22 09:00:53 -08:00
David Lee
002713c645 Add config.default_method_for_update to support PATCH
PATCH is the correct HTML verb to map to the #update action. The
semantics for PATCH allows for partial updates, whereas PUT requires a
complete replacement.

Changes:
* adds config.default_method_for_update you can set to :patch
* optionally use PATCH instead of PUT in resource routes and forms
* adds the #patch verb to routes to detect PATCH requests
* adds #patch? to Request
* changes documentation and comments to indicate support for PATCH

This change maintains complete backwards compatibility by keeping :put
as the default for config.default_method_for_update.
2012-02-22 08:47:10 -08:00
Santiago Pastorino
157ea76306 format lookup for partials is derived from the format in which the template is being rendered
Closes #5025 part 2
2012-02-22 11:12:03 -02:00
Aaron Patterson
07dc909a47 search private / protected methods in trunk ruby 2012-02-20 11:02:47 -08:00
José Valim
2f689d462d Merge pull request #3479 from arvida/ensure-date-header-on-expires-in
Ensure Date header on expires_in
2012-02-18 00:28:23 -08:00
Xavier Noria
ce51edb73b let expires_in accept a must_revalidate flag 2012-02-17 05:18:37 -08:00
Ryan McGeary
6efb849b32 Fixed force_ssl redirects to include original query params
`ActionController.force_ssl` redirects http URLs to their https equivalent;
however, when a URL contains a query string, the resulting redirect lacked the
original query string.

Conflicts:

	actionpack/lib/action_controller/metal/force_ssl.rb
2012-02-07 13:28:29 -05:00
José Valim
20bc3d4aaa Clean up a bit default_response handling and cache format negotiation. 2012-02-04 16:00:02 +01:00
Prem Sichanugrist
3def1c8edb Fix override API response bug in respond_with
Default responder was only using the given respond block when user
requested for HTML format, or JSON/XML format with valid resource. This
fix the responder so that it will use the given block regardless of the
validity of the resource. Note that in this case you'll have to check
for object's validity by yourself in the controller.

Fixes #4796
2012-02-03 14:15:51 -05:00
Damian Le Nouaille
342f84ad45 example bracket error 2012-01-23 01:15:51 +01:00
Carlos Antonio da Silva
1b4edd173d Use performed? instead of checking for response_body
* Check for performed? instead of response_body
* Change performed? to return a boolean
* Refactor AC::Metal#response_body= to reuse variable
2012-01-19 18:25:52 -02:00
Carlos Antonio da Silva
0b7548fab1 Move protected instance variables definition, kill compatibility module 2012-01-17 10:04:39 -02:00
Carlos Antonio da Silva
cb650a50bf Remove deprecated default_charset= from AC::Base
This should be set globally as a configuration, using
`config.action_dispatch.default_charset` instead
2012-01-17 10:04:39 -02:00
Carlos Antonio da Silva
67c96ab024 Move render_to_body logic to return a spaced string to AC::Rendering
This seems to be required only when calling render :partial with an
empty collection from a controller. This call happens to return no
content, letting the response body empty, which means to Rails that it
should go on and try to find a template to render based on the current
action name, thus failing hard.

Although tests keep all green, we need to check a better way to fix
this.
2012-01-17 10:04:38 -02:00
Carlos Antonio da Silva
a977b2588e Remove method missing handling when action is not found, use action missing instead
Do not create a method_missing method to handle not found actions, use
the action_missing method provided by Rails instead.
2012-01-17 10:04:38 -02:00
Carlos Antonio da Silva
53596d0913 Refactor render nothing/text => nil logic, and move to right place
Options :nothing and :text => nil should be handled by
ActionController::Rendering instead.
2012-01-17 10:04:38 -02:00
Carlos Antonio da Silva
6244d16eaf Move render :nothing and :text => nil options to AC::Rendering 2012-01-17 10:04:38 -02:00
Carlos Antonio da Silva
bb33e88833 Remove deprecated logic to render templates starting with /
render :template => "/foo/bar"
2012-01-17 10:04:38 -02:00
Carlos Antonio da Silva
497004858d Remove relative url root setting from ENV var
This is already being set by Rails configuration.
2012-01-17 10:04:37 -02:00
Carlos Antonio da Silva
71566c3573 Remove rescue_action from compatibility module and tests 2012-01-17 10:04:37 -02:00
Carlos Antonio da Silva
1ae9e60b8a Remove other old compatibility constants 2012-01-17 10:04:37 -02:00
Carlos Antonio da Silva
6f8b1e3a85 Remove constant already defined in exceptions module 2012-01-17 10:04:37 -02:00
Carlos Antonio da Silva
bc50cb31d6 Remove old compatibility methods not being used 2012-01-17 10:04:37 -02:00
Marcin Bunsch and Przemek Dąbek
321dae5dcc When force redirecting to SSL, make sure that the session is kept. As we're moving from a non-secure to secure environment, it's safe 2012-01-12 20:31:23 +01:00
Sergey Nartimov
7d862359d0 get rid of using instance_variable_names method from AS
- instance_variables return symbols in 1.9
- there is instance_variable_defined? method
2012-01-07 14:44:47 +03:00
Aaron Patterson
cac0bd16ce Merge pull request #4327 from Karunakar/minor
removed warning because logger.warn differentiate the warings
2012-01-06 09:57:41 -08:00
Rafael Mendonça França
2ed17977ac Change more Array.wrap to Kernel#Array 2012-01-05 17:57:56 -03:00
Rafael Mendonça França
56715c49d4 Use Kernel#Array in ActionController::Helpers 2012-01-05 17:13:27 -03:00
Karunakar (Ruby)
93ec400e07 removed warning because logger.warn differentiate the warings 2012-01-05 23:42:58 +05:30
Sergey Nartimov
634c03403d fix base64 require 2012-01-03 00:07:50 +03:00
Sergey Nartimov
0f2f8003d2 remove ActiveSupport::Base64 in favor of ::Base64 2012-01-02 22:48:15 +03:00
Vasiliy Ermolovich
a19d0f5a66 deprecate Base64.encode64s from AS. Use Base64.strict_encode64 instead 2011-12-27 22:46:44 +03:00
Vasiliy Ermolovich
a7ba8e1fb3 remove File#to_path alias 2011-12-25 22:22:22 +03:00
José Valim
e6bfcc21a8 Remove unecessary config_accessors. 2011-12-24 09:59:28 +01:00
Piotr Sarnacki
3131a93797 Fix http digest authentication with trailing '/' or '?' (fixes #4038 and #3228) 2011-12-21 00:02:58 +01:00
José Valim
654df86b7b Show detailed exceptions no longer returns true if the request is local in production. 2011-12-16 10:45:59 +01:00
José Valim
26e7400cc5 Fix diagnostics page for routing errors. 2011-12-15 19:43:49 +01:00
Jean-Francois Turcot
d5526218e4 ParamsWrapper only wrap the accessible attributes when they were set 2011-12-07 22:50:01 -05:00
lest
1f0e21ce30 use classify in ParamsWrapper to derive model name from controller name 2011-12-05 19:15:36 +03:00
Overbryd
9fb5ee8beb Minor enhancement by not unnecessarely escaping forward slashing within a curly regexp and by mentoining the protocol relative scheme in the internal comment 2011-12-05 11:48:05 +01:00
Overbryd
e31c4ace97 Fix for redirect_to to respect urls with a network path reference like "//asset.host.com/resources/1235" see issue #3856 2011-12-05 11:19:48 +01:00
David Heinemeier Hansson
83d29a283c Revert "Added ActiveRecord::Base#last_modified to work with the new fresh_when/stale? conditional get methods from Action Pack"
Needless indirection with no added value.

This reverts commit 535853e83b9092078035a5abb2aa242fba815c05.
2011-12-01 20:45:47 +01:00
David Heinemeier Hansson
535853e83b Added ActiveRecord::Base#last_modified to work with the new fresh_when/stale? conditional get methods from Action Pack 2011-12-01 19:47:14 +01:00
David Heinemeier Hansson
218c272938 Allow fresh_when/stale? to take a record instead of an options hash [DHH] 2011-12-01 19:16:10 +01:00
Olli Jokinen
b4e1903d23 Merge remote-tracking branch 'upstream/master' 2011-12-01 15:32:59 +02:00
José Valim
38ab982cff Log 'Filter chain halted as CALLBACKNAME rendered or redirected' every time a before callback halts. 2011-11-30 09:53:09 +01:00
José Valim
0a4035b12a Revert the serializers API as other alternatives are now also under discussion 2011-11-25 19:29:39 +00:00
José Valim
696d01f7f4 Add docs to serializers. Update CHANGELOGs. 2011-11-25 09:49:54 +00:00
José Valim
7fcc8c0a1f Rely solely on active_model_serializer and remove the fancy constant lookup. 2011-11-23 23:45:27 +00:00
José Valim
e62de52aa3 Merge branch 'master' into serializers 2011-11-23 20:43:06 +00:00
lest
5bcd119b8d move show_detailed_exceptions? to Rescue module 2011-11-22 13:34:13 +03:00
Xavier Noria
c3035e1800 Merge pull request #3613 from mitio/fix-actionpack-responder-docs
Fix wording and minor typos in the Responder RDoc
2011-11-11 10:03:29 -08:00
Dimitar Dimitrov
a766d834a7 Fix wording and minor typos in the Responder RDoc 2011-11-11 19:52:38 +02:00
Vijay Dev
6ac56ac93b fix incorrect code example 2011-11-07 17:58:03 +05:30
arvida
2a7230aa99 Ensuring a HTTP Date header when setting Cache-Control's max-age with #expires_in 2011-10-31 10:27:23 +01:00