Rename browse controller to sqm categories controller

This commit is contained in:
Liam Morley 2021-10-07 14:54:00 -04:00
parent ae525fdb2a
commit 4aa0c97275
5 changed files with 3 additions and 3 deletions

View file

@ -1,4 +1,4 @@
class BrowseController < SqmApplicationController
class SqmCategoriesController < SqmApplicationController
def show
@category = CategoryPresenter.new(

View file

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

Before After
Before After

View file

@ -5,7 +5,7 @@ Rails.application.routes.draw do
resources :districts do
resources :schools, only: [:index, :show] do
resources :dashboard, only: [:index]
resources :browse, only: [:show]
resources :sqm_categories, only: [:show], path: 'browse'
end
end

View file

@ -1,6 +1,6 @@
require 'rails_helper'
describe 'browse/show.html.erb' do
describe 'sqm_categories/show.html.erb' do
before :each do
academic_year = create(:academic_year, range: '1989-90')
school = create(:school, name: 'Best School')