class AlumnosController < ApplicationController
before_filter :authenticate_docente!
# GET /alumnos
# GET /alumnos.json
def index
@alumnos = Alumno.all
respond_to do |format|
format.html # index.html.erb
format.json { render json: @alumnos }
end
end
以这种方式为用户声明,但我想知道我是如何为多个用户做的。