remove HOME Page, because redundant
show search page as default
This commit is contained in:
parent
16ae8fd87b
commit
415ed22f6e
@ -1,4 +0,0 @@
|
|||||||
class LoginController < ApplicationController
|
|
||||||
def index
|
|
||||||
end
|
|
||||||
end
|
|
||||||
@ -1,2 +0,0 @@
|
|||||||
<%= render(:partial => "nav")%>
|
|
||||||
|
|
||||||
@ -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? %>
|
||||||
|
|||||||
@ -1,2 +0,0 @@
|
|||||||
<h1>Successfully logged in</h1>
|
|
||||||
<p>Now you can crawl Tiss</p>
|
|
||||||
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user