hoshinotsuyoshi/s3_explorer

View on GitHub
app/controllers/buckets_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

# bucket controller class.
class BucketsController < ApplicationController
  # GET /buckets
  # GET /buckets.json
  def index
    @buckets = Bucket.all
  end

  # GET /buckets/1
  # GET /buckets/1.json
  def show
    redirect_to(bucket_prefix_path(bucket_id: params[:id], prefix_id: ''))
  end
end