From a5dbe4f9bde0c20831b8856c02b3cd2c692683e9 Mon Sep 17 00:00:00 2001 From: Rimian Perkins Date: Wed, 11 Sep 2019 17:38:55 +1000 Subject: [PATCH] Show route --- assets/javascripts/discourse/patrons-route-map.js.es6 | 4 +++- config/routes.rb | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/assets/javascripts/discourse/patrons-route-map.js.es6 b/assets/javascripts/discourse/patrons-route-map.js.es6 index e15bc40..a31f88d 100644 --- a/assets/javascripts/discourse/patrons-route-map.js.es6 +++ b/assets/javascripts/discourse/patrons-route-map.js.es6 @@ -1,4 +1,6 @@ export default function () { - this.route('patrons'); + this.route('patrons', function() { + this.route("show", { path: ":pid" }); + }); } diff --git a/config/routes.rb b/config/routes.rb index 315c8be..65ce857 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -2,4 +2,5 @@ Discourse::Application.routes.append do get '/patrons' => 'patrons#index' + get '/patrons/:pid' => 'patrons#index' end