From 961ebfd2667686b3758ba16ac02e24e111da60b0 Mon Sep 17 00:00:00 2001 From: pixeldesu Date: Wed, 13 May 2015 20:56:51 +0200 Subject: [PATCH] add routes and empty index for discover --- app/controllers/discover_controller.rb | 5 +++++ app/views/discover/index.html.haml | 1 + config/routes.rb | 1 + 3 files changed, 7 insertions(+) create mode 100644 app/views/discover/index.html.haml diff --git a/app/controllers/discover_controller.rb b/app/controllers/discover_controller.rb index 282c69ef..880d3320 100644 --- a/app/controllers/discover_controller.rb +++ b/app/controllers/discover_controller.rb @@ -1,2 +1,7 @@ class DiscoverController < ApplicationController + before_filter :authenticate_user! + + def index + + end end diff --git a/app/views/discover/index.html.haml b/app/views/discover/index.html.haml new file mode 100644 index 00000000..8d1c8b69 --- /dev/null +++ b/app/views/discover/index.html.haml @@ -0,0 +1 @@ + diff --git a/config/routes.rb b/config/routes.rb index 9b8c648f..8cb2a9ca 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -90,6 +90,7 @@ Rails.application.routes.draw do match '/unsubscribe', to: 'subscription#unsubscribe', via: :post, as: :unsubscribe_answer end + match '/discover', to: 'discover#index', via: :get, as: :discover match '/public', to: 'public#index', via: :get, as: :public_timeline match '/group/:group_name', to: 'group#index', via: :get, as: :group_timeline