respond_with and respond_to which to use?
Great overview can be found here. I personally always use respond_with as I have found it more adaptable as things grow and change. Plus the advantage of ActiveModel::Serializers integration is great as well.
Written by Justin Smestad
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Rails
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#