Rafael Mendonça França
35e2255b7a
Merge pull request #18771 from kirs/deprecate-xhr
...
Migrating xhr methods to keyword arguments syntax
2015-02-05 18:27:47 -02:00
Kir Shatrov
b19999f3a7
Migrating xhr methods to keyword arguments syntax
...
in `ActionController::TestCase` and
`ActionDispatch::Integration`
Old syntax:
`xhr :get, :create, params: { id: 1 }`
New syntax example:
`get :create, params: { id: 1 }, xhr: true`
2015-02-01 16:07:42 +03:00
Yves Senn
afe402dac7
unify CHANGELOG format. [ci skip]
2015-01-31 11:54:00 +01:00
Rafael Mendonça França
0eb3ba0e65
Improve CHANGELOG
2015-01-29 11:52:10 -02:00
Kir Shatrov
baf14ae513
Switch to kwargs in ActionController::TestCase and ActionDispatch::Integration
...
Non-kwargs requests are deprecated now.
Guides are updated as well.
`post url, nil, nil, { a: 'b' }` doesn't make sense.
`post url, params: { y: x }, session: { a: 'b' }` would be an explicit way to do the same
2015-01-29 14:44:46 +02:00
Tekin Suleyman
db870f222e
Preserve default url options when generating URLs
...
Fixes an issue that would cause default_url_options to be lost when generating
URLs with fewer positional arguments than parameters in the route definition.
2015-01-28 21:15:52 +00:00
Rafael Mendonça França
7d9c5c1653
Add CHANGELOG entry
2015-01-28 18:50:01 -02:00
brainopia
656628961c
Add ActionController::Base.render
2015-01-22 01:02:13 +03:00
brainopia
801e399e42
Add ActionController::Renderer
...
Render arbitrary templates outside of controller actions
2015-01-22 01:02:11 +03:00
brainopia
685142e4f4
Support :assigns
option when rendering with controllers/mailers.
2015-01-22 00:25:50 +03:00
Yves Senn
a7621d7d53
formatting pass over CHANGELOGs. [ci skip]
2015-01-10 12:17:57 +01:00
Yves Senn
a94f8e71d2
Merge pull request #18423 from jone/remove-default-header
...
Default headers, removed in controller actions, will not be reapplied to the test response
2015-01-09 17:01:31 +01:00
Jonas Baumann
0739480f45
Default headers, removed in controller actions, will not be reapplied to the test response.
2015-01-09 16:55:02 +01:00
Abdelkader Boudih
7644a99d90
Deprecate all *_filter callbacks in favor of *_action callbacks
2015-01-08 20:52:36 +00:00
David Heinemeier Hansson
9af5f33a16
Fix the example (for realz)
2015-01-08 11:18:06 -08:00
David Heinemeier Hansson
6b9a973154
Fix the example
2015-01-08 11:17:03 -08:00
Josef Šimánek
0074bbb07b
Add prepend option to protect_from_forgery.
2015-01-08 19:47:19 +01:00
brainopia
08d3f0e3b3
Remove ActionController::HideActions ( closes #18336 )
2015-01-06 23:40:45 +03:00
Carlos Antonio da Silva
afd5e9a7ff
Remove respond_to/respond_with placeholder methods
...
This functionality has been extracted to the responders gem.
2015-01-04 18:22:09 -02:00
Rafael Mendonça França
92e27d30d8
Remove deprecated assertion files
2015-01-04 11:58:42 -03:00
Rafael Mendonça França
34e380764e
Remove deprecated usage of string keys in URL helpers
2015-01-04 11:58:42 -03:00
Rafael Mendonça França
e4e1fd7ade
Remove deprecated only_path
option on *_path
helpers
2015-01-04 11:58:42 -03:00
Rafael Mendonça França
2cc91c37bc
Remove deprecated NamedRouteCollection#helpers
2015-01-04 11:58:42 -03:00
Rafael Mendonça França
1f3b0a8609
Remove deprecated support to define routes with :to
option that
...
doesn't contain `#`
2015-01-04 11:58:41 -03:00
Rafael Mendonça França
4b19d5b7bc
Remove deprecated ActionDispatch::Response#to_ary
2015-01-04 11:58:41 -03:00
Rafael Mendonça França
7676659633
Remove deprecated ActionDispatch::Request#deep_munge
2015-01-04 11:58:41 -03:00
Rafael Mendonça França
7fe7973cd8
Remove deprecated ActionDispatch::Http::Parameters#symbolized_path_parameters
2015-01-04 11:58:41 -03:00
Rafael Mendonça França
e4cfd353a4
Remove deprecated option use_route
in controller tests
2015-01-04 11:58:41 -03:00
Rafael Mendonça França
2d743b528c
Merge pull request #17978 from kommen/fixed-pr-14903
...
Ensure append_info_to_payload is called even if an exception is raised.
Conflicts:
actionpack/CHANGELOG.md
2015-01-02 14:16:15 -03:00
Robin Dupret
7ef7f1cc15
Correctly use the response's status code calling head
...
Commit 20fece1 introduced the `_status_code` method to fix calls to
`head :ok`. This method has been added on both ActionController::Metal
and ActionDispatch::Response.
As for the latter, this method is just equivalent to the `response_code`
one so commit aefec3c removed it from the `Reponse` object so call to
the `_status_code` method on an ActionController::Base instance would be
handled by the `Metal` class (which `Base` inherits from) but the status
code is not updated according to the response at this level.
The fix is to actually rely on `response_code` for ActionController::Base
instances but this method doesn't exist for bare Metal controllers so we
need to define it.
2014-12-31 16:37:35 +01:00
Prathamesh Sonpatki
75757c5c3b
Remove single space response body for head request
...
- The single space response was added due to a bug in safari
in cb0f8fda96
and
807df4fcf0
.
- This was removed from the `render nothing: true` in
https://github.com/rails/rails/pull/14883 .
- Removing it from response of :head also. As :head is more obvious
alternative to call `render nothing:
true`(http://guides.rubyonrails.org/layouts_and_rendering.html#using-head-to-build-header-only-responses ),
removing it from head method also.
- Closes #18253 .
2014-12-30 20:50:23 +05:30
Rafael Mendonça França
0c070ae568
Merge pull request #18251 from tjgrathwell/fix-polymorphic-routes-to-model
...
Fix form_for to work with objects that implement to_model
2014-12-30 11:23:47 -03:00
Yves Senn
0587070391
cleanup CHANGELOGs. [ci skip]
2014-12-23 08:56:17 +01:00
Chris Sinjakli
8f8ccb9901
Don't convert empty arrays to nils when deep munging params
2014-12-15 14:51:07 +00:00
Alex Robbin
a842c5c12d
allow URL helpers to work with optional scopes
2014-12-13 15:52:41 -05:00
Tatiana Soukiassian
1a50be8231
Fix handling of positional url helper arguments when format is false
...
There is no need to subtract one from the path_params size when there is
no format parameter because it is not present in the path_params array.
Fixes #17819 .
2014-12-13 15:42:15 +00:00
Dieter Komendera
2fde159f6b
Ensure append_info_to_payload is called even if an exception is raised.
...
See:
* https://github.com/rails/rails/pull/14903
* https://github.com/roidrage/lograge/issues/37
Some code by mxrguspxrt from #14903 .
2014-12-10 22:13:13 +01:00
Rafael Mendonça França
f25ad07f5a
Start Rails 5 development 🎉
...
We will support only Ruby >= 2.1.
But right now we don't accept pull requests with syntax changes to drop
support to Ruby 1.9.
2014-11-28 15:00:06 -02:00
Matthew Draper
25b14b4d32
Merge pull request #17186 from tgxworld/header_authentication_token
...
Allow authentication header to not have to specify 'token=' key.
2014-11-27 01:44:13 +10:30
Sean Griffin
0bc04ced98
Changelog format
2014-11-24 19:18:33 -07:00
Melanie Gilman
4d84922840
Deprecate string options in URL helpers
...
Fixes https://github.com/rails/rails/issues/16958
[Byron Bischoff & Melanie Gilman]
2014-11-24 21:16:33 -05:00
Godfrey Chan
aa1fadd48f
Deprecate the only_path
option on *_path
helpers.
...
In cases where this option is set to `true`, the option is redundant and can
be safely removed; otherwise, the corresponding `*_url` helper should be
used instead.
Fixes #17294 .
See also #17363 .
[Dan Olson, Godfrey Chan]
2014-10-28 09:43:33 -07:00
Yves Senn
400b0818fa
some changelog formatting. [ci skip]
2014-10-16 09:11:41 +02:00
Nicolas Cavigneaux
3041bb2a94
Improve Journey compliance to RFC 3986
...
The scanner in Journey fails to recognize routes that use literals
from the sub-delims section of RFC 3986.
This commit enhance the compatibility of Journey with the RFC by
adding support of authorized delimiters to the scanner.
Fix #17212
2014-10-14 16:42:50 +02:00
Rafael Mendonça França
0863c9248f
No need CHANGLOG entry for a bug in a non released version
...
[ci skip]
2014-09-25 17:21:55 -03:00
Gert Goet
2d08fd2506
Remove internal options from query string of paths
...
Fixes #17057
2014-09-25 17:50:16 +02:00
Jeremy Kemper
2a78d6f561
Deprecate implicit AD::Response splatting and Array conversion
2014-09-06 07:05:59 -07:00
Peter Suschlik
a59a9b7f72
Don't rescue IPAddr::InvalidAddressError
...
IPAddr::InvalidAddressError does not exist in Ruby 1.9.3
and fails for JRuby in 1.9 mode.
As IPAddr::InvalidAddressError is a subclass of ArgumentError
(via IPAddr::Error) just rescuing ArgumentError is fine.
2014-08-29 09:05:31 +02:00
Aaron Patterson
6d86762fd8
Merge pull request #16637 from Agis-/redirect-with-constraint-route
...
Fix the router ignoring constraints when used together with a redirect route
2014-08-28 10:33:40 -07:00
Yves Senn
20e7f08ecc
minor changelog formatting changes.
2014-08-27 12:09:21 +02:00