Update Rails controller to render json for all actions