refactoring of project

This commit is contained in:
Marco Zeisler 2020-04-21 13:19:01 +02:00
parent c0a5b794ec
commit c5cc225ca6
7 changed files with 17 additions and 56 deletions

View File

@ -1,12 +1,3 @@
class CoursesController < TissCrawlerController
def index
end
def show_basic
end
def show_detailed
end
end

View File

@ -1,22 +1,4 @@
class LoginController < ApplicationController
def index
end
def show
end
def new
end
def edit
end
def create
end
def update
end
def destroy
end
end

View File

@ -1,12 +1,3 @@
class PeopleController < TissCrawlerController
def index
end
def show_basic
end
def show_detail
end
end

View File

@ -1,12 +1,3 @@
class ProjectsController < TissCrawlerController
def index
end
def show_basic
end
def show_detailed
end
end

View File

@ -1,12 +1,3 @@
class ThesesController < TissCrawlerController
def index
end
def show_basic
end
def show_detailed
end
end

View File

@ -2,6 +2,15 @@ class TissCrawlerController < ApplicationController
require 'tiss/tiss_crawler'
def index
end
def show_basic
end
def show_detail
end
def search
context = params[:context]
case context

View File

@ -1,4 +1,10 @@
<h1>People#show basic</h1>
<p>Find me in app/views/people/show.html.erb</p>
<%= @people %>
This is the result for your basic people search:
<% @people.each do |person| %>
<p>
<%= person.first_name %>
<%= person.last_name %>
<%= button_to people_show_detailed_path %> [add to favs]
</p>
<% end %>