# rails-api App class ArticlesController < ApplicationController def index @articles = Article.all render json: @articles end def show @article = Article.find(params[:id]) fresh_when(@article) # <---- Can it return a json? end