From ce13f7910513ae595061a698fc069f17b8479f22 Mon Sep 17 00:00:00 2001 From: Edouard CHIN Date: Wed, 6 Jan 2016 12:32:19 +0000 Subject: Better error message when running `rake routes` with CONTROLLER arg: - `CONTROLLER` argument can now be supplied in different ways (Rails::WelcomeController, Rails::Welcome, rails/welcome) - If `CONTROLLER` argument was supplied but it does not exist, will warn the user that this controller does not exist - If `CONTROLLER` argument was supplied and no routes could be found matching this filter, will warn the user that no routes were found matching the supplied filter - If no routes were defined in the config/routes.rb file, will warn the user with the original message --- actionpack/CHANGELOG.md | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'actionpack/CHANGELOG.md') diff --git a/actionpack/CHANGELOG.md b/actionpack/CHANGELOG.md index 0a5da2a94e..a732622b00 100644 --- a/actionpack/CHANGELOG.md +++ b/actionpack/CHANGELOG.md @@ -1,3 +1,11 @@ +* More explicit error message when running `rake routes`. `CONTROLLER` argument + can now be supplied in different ways: + `Rails::WelcomeController`, `Rails::Welcome`, `rails/welcome` + + Fixes #22918 + + *Edouard Chin* + * Allow `ActionController::Parameters` instances as an argument to URL helper methods. An `ArguemntError` will be raised if the passed parameters are not secure. -- cgit v1.2.3