Sha256: e2bbaf194bb30e05333733a587d72b48d246032ab29dede4744c6f01b6a3fff0
Contents?: true
Size: 1.14 KB
Versions: 1
Compression:
Stored size: 1.14 KB
Contents
class UserImportResultsController < ApplicationController load_and_authorize_resource # GET /user_import_results # GET /user_import_results.json def index @user_import_file = UserImportFile.where(id: params[:user_import_file_id]).first if @user_import_file @user_import_results = @user_import_file.user_import_results.page(params[:page]) else @user_import_results = UserImportResult.page(params[:page]) end respond_to do |format| format.html # index.html.erb format.json { render json: @user_import_results } format.txt end end # GET /user_import_results/1 # GET /user_import_results/1.json def show respond_to do |format| format.html # show.html.erb format.json { render json: @user_import_result } end end # DELETE /user_import_results/1 # DELETE /user_import_results/1.json def destroy @user_import_result.destroy respond_to do |format| format.html { redirect_to user_import_results_url, notice: t('controller.successfully_deleted', model: t('activerecord.models.user_import_result')) } format.json { head :no_content } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
enju_leaf-1.1.0.rc14 | app/controllers/user_import_results_controller.rb |