lib/action_controller/respond_with.rb in responders-2.1.0 vs lib/action_controller/respond_with.rb in responders-2.1.1
- old
+ new
@@ -173,10 +173,12 @@
# do not have to first be declared using the class method +respond_to+.
#
# Also, a hash passed to +respond_with+ immediately after the specified
# resource(s) is interpreted as a set of options relevant to all
# formats. Any option accepted by +render+ can be used, e.g.
+ #
# respond_with @people, status: 200
+ #
# However, note that these options are ignored after an unsuccessful attempt
# to save a resource, e.g. when automatically rendering <tt>:new</tt>
# after a post request.
#
# Two additional options are relevant specifically to +respond_with+ -