remove HOME Page, because redundant

show search page as default
This commit is contained in:
Pfingstfrosch 2020-05-12 19:27:43 +02:00
parent 16ae8fd87b
commit 415ed22f6e
5 changed files with 2 additions and 15 deletions

View File

@ -1,4 +0,0 @@
class LoginController < ApplicationController
def index
end
end

View File

@ -1,2 +0,0 @@
<%= render(:partial => "nav")%>

View File

@ -20,9 +20,8 @@
</label> </label>
<a href="#" class="logo">tiss2go</a> <a href="#" class="logo">tiss2go</a>
<div class="left-menu"> <div class="left-menu">
<%= link_to 'Home', root_path %>
<%= link_to 'Search TISS', tiss_crawler_search_path %> <%= link_to 'Search TISS', tiss_crawler_search_path %>
<%= link_to 'Your Favorites', '/favorites/index' %> <%= link_to 'Your Favorites', favorites_people_path %>
</div> </div>
<div class="right-menu"> <div class="right-menu">
<% if user_signed_in? %> <% if user_signed_in? %>

View File

@ -1,2 +0,0 @@
<h1>Successfully logged in</h1>
<p>Now you can crawl Tiss</p>

View File

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