From ad80c40944743515a45d70014e8d5ffb88cd74fc Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sun, 25 Jun 2017 00:00:28 -0400 Subject: Started designing index page --- config/routes.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'config') diff --git a/config/routes.rb b/config/routes.rb index 787824f..64b02aa 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,3 +1,10 @@ Rails.application.routes.draw do # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html + root "records#index" + + get 'says/:slug', to: 'entries#show' + + # get ':directory/:slug', to: 'entries#show', constraints: lambda { |request| + # Entry::DIRECTORIES.include? request.path_parameters['directory'] + # } end -- cgit 1.4.1