Rails4の時同様、コントローラー、モデルができるがAPIモードなのでビューはできない。 コントローラーはこんな感じ。 class UsersController < ApplicationController before_action :set_user, only: [:show, :update, :destroy] # GET /users def index @users = User.all render json: @users end # GET /users/1 def show render json: @user end #・・・略 end