From 415ed22f6e0e553b49c9ae262b439bd15babe94a Mon Sep 17 00:00:00 2001 From: Pfingstfrosch Date: Tue, 12 May 2020 19:27:43 +0200 Subject: [PATCH] remove HOME Page, because redundant show search page as default --- app/controllers/login_controller.rb | 4 ---- app/views/favorites/index.html.erb | 2 -- app/views/layouts/application.html.erb | 3 +-- app/views/login/index.html.erb | 2 -- config/routes.rb | 6 +----- 5 files changed, 2 insertions(+), 15 deletions(-) delete mode 100644 app/controllers/login_controller.rb delete mode 100644 app/views/favorites/index.html.erb delete mode 100644 app/views/login/index.html.erb diff --git a/app/controllers/login_controller.rb b/app/controllers/login_controller.rb deleted file mode 100644 index 8613d06..0000000 --- a/app/controllers/login_controller.rb +++ /dev/null @@ -1,4 +0,0 @@ -class LoginController < ApplicationController - def index - end -end diff --git a/app/views/favorites/index.html.erb b/app/views/favorites/index.html.erb deleted file mode 100644 index 945b593..0000000 --- a/app/views/favorites/index.html.erb +++ /dev/null @@ -1,2 +0,0 @@ -<%= render(:partial => "nav")%> - diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index f6d438d..0a951c7 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -20,9 +20,8 @@
- <%= link_to 'Home', root_path %> <%= link_to 'Search TISS', tiss_crawler_search_path %> - <%= link_to 'Your Favorites', '/favorites/index' %> + <%= link_to 'Your Favorites', favorites_people_path %>
<% if user_signed_in? %> diff --git a/app/views/login/index.html.erb b/app/views/login/index.html.erb deleted file mode 100644 index 139f7ff..0000000 --- a/app/views/login/index.html.erb +++ /dev/null @@ -1,2 +0,0 @@ -

Successfully logged in

-

Now you can crawl Tiss

diff --git a/config/routes.rb b/config/routes.rb index 59a531b..f3b1899 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -2,10 +2,6 @@ Rails.application.routes.draw do devise_for :users, path_names: {sign_in: 'log_in', sign_out: 'log out'} - namespace :login do - get 'index' - end - namespace :tiss_crawler do get 'search' end @@ -35,5 +31,5 @@ Rails.application.routes.draw do end # For details on the DSL available within this file, see https://guides.rubyonrails.org/routing.html - root 'login#index' + root 'tiss_crawler#search' end