summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
authorDavid Gay <david@davidgay.org>2021-05-03 18:37:26 -0400
committerDavid Gay <david@davidgay.org>2021-05-03 18:37:26 -0400
commitaa25545eb204d0ca842ab948af4c27cb217352d6 (patch)
tree89bf44a06f4adf953899561f84ed22830dc2bc13 /app/controllers
parent23178917e0d415ac17aab9a8077a124c3254f124 (diff)
Locations views
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/locations_controller.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/controllers/locations_controller.rb b/app/controllers/locations_controller.rb
new file mode 100644
index 0000000..4616c3d
--- /dev/null
+++ b/app/controllers/locations_controller.rb
@@ -0,0 +1,9 @@
+class LocationsController < ApplicationController
+ def index
+ @locations = Location.all
+ end
+
+ def show
+ @location = Location.find(params[:id])
+ end
+end