Rename browse controller to sqm categories controller

pull/1/head
Liam Morley 4 years ago
parent ae525fdb2a
commit 4aa0c97275

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

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

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

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