diff options
author | Godfrey Chan <godfreykfc@gmail.com> | 2014-08-17 12:19:06 -0700 |
---|---|---|
committer | Godfrey Chan <godfreykfc@gmail.com> | 2014-08-17 12:19:23 -0700 |
commit | a485633b16abd64b0955010fa93e0bc4894c7b7c (patch) | |
tree | 608d23917d13d5b6107795a6faca6d8645ebd21a /actionpack/lib/action_controller | |
parent | a5e2d2ef8565a96ed915afe734f67b604fa48450 (diff) | |
download | rails-a485633b16abd64b0955010fa93e0bc4894c7b7c.tar.gz rails-a485633b16abd64b0955010fa93e0bc4894c7b7c.tar.bz2 rails-a485633b16abd64b0955010fa93e0bc4894c7b7c.zip |
`responders` 1.x won't do it. Told you to RTFM for details!
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r-- | actionpack/lib/action_controller/metal/mime_responds.rb | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/actionpack/lib/action_controller/metal/mime_responds.rb b/actionpack/lib/action_controller/metal/mime_responds.rb index 5c869d4ce2..dc572f13d2 100644 --- a/actionpack/lib/action_controller/metal/mime_responds.rb +++ b/actionpack/lib/action_controller/metal/mime_responds.rb @@ -9,15 +9,18 @@ module ActionController #:nodoc: def respond_to(*) raise NoMethodError, "The controller-level `respond_to' feature has " \ "been extracted to the `responders` gem. Add it to your Gemfile to " \ - "continue using this feature. Consult the Rails upgrade guide for " \ - "details." + "continue using this feature:\n" \ + " gem 'responders', '~> 2.0'\n" \ + "Consult the Rails upgrade guide for details." end end def respond_with(*) raise NoMethodError, "The `respond_with' feature has been extracted " \ "to the `responders` gem. Add it to your Gemfile to continue using " \ - "this feature. Consult the Rails upgrade guide for details." + "this feature:\n" \ + " gem 'responders', '~> 2.0'\n" \ + "Consult the Rails upgrade guide for details." end # Without web-service support, an action which collects the data for displaying a list of people |