Rails 3 has a nice feature to save writing flashes on a separate line:
redirect_to @product, :notice => "Successfully created product."
It would be great with respond_with
, but not supported. Any way to override respond_with
to take an optional flash hash?