working on navigation

This commit is contained in:
Jared Cosulich 2017-10-18 11:54:52 -04:00
parent 36329235d0
commit b0331e2259
5 changed files with 13 additions and 8 deletions

View file

@ -7,6 +7,8 @@ class School < ApplicationRecord
validates :name, presence: true
scope :alphabetic, -> { order(name: :asc) }
include FriendlyId
friendly_id :name, :use => [:slugged]