You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: school_calendar_steps_controller.rb
    path of file: ./repos/i-diario/app/controllers
    
    the code of the file until where you have to start completion: class SchoolCalendarStepsController < ApplicationController
  def show
    @school_calendar_step = SchoolCalendarStep.find(params[:id]).localized

    render json: @school_c
    
  def index
    @school_calendar_steps = apply_scopes(SchoolCalendarStep).ordered

    steps = []
    @school_calendar_steps.each do |school_calendar_step|
      steps << {
        id: school_calendar_step.id,
        school_term: school_calendar_step.to_s
      }
    end

    render json: steps
  end