mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #25464 from prathamesh-sonpatki/fix-http-request
update_url is not `get` most of the times [ci skip]
This commit is contained in:
commit
13a1110079
1 changed files with 1 additions and 1 deletions
|
@ -722,7 +722,7 @@ get :show, params: { id: 12 }, headers: { "HTTP_REFERER" => "http://example.com/
|
|||
Another example: Calling the `:update` action, passing an `id` of 12 as the `params` as an Ajax request.
|
||||
|
||||
```ruby
|
||||
get update_url, params: { id: 12 }, xhr: true
|
||||
patch update_url, params: { id: 12 }, xhr: true
|
||||
```
|
||||
|
||||
NOTE: If you try running `test_should_create_article` test from `articles_controller_test.rb` it will fail on account of the newly added model level validation and rightly so.
|
||||
|
|
Loading…
Reference in a new issue