From c5cc225ca6b0cff8053f80dfd52b242f2d1169bc Mon Sep 17 00:00:00 2001 From: Marco Zeisler Date: Tue, 21 Apr 2020 13:19:01 +0200 Subject: [PATCH] refactoring of project --- app/controllers/courses_controller.rb | 9 --------- app/controllers/login_controller.rb | 18 ------------------ app/controllers/people_controller.rb | 9 --------- app/controllers/projects_controller.rb | 9 --------- app/controllers/theses_controller.rb | 9 --------- app/controllers/tiss_crawler_controller.rb | 9 +++++++++ app/views/people/show_basic.html.erb | 10 ++++++++-- 7 files changed, 17 insertions(+), 56 deletions(-) diff --git a/app/controllers/courses_controller.rb b/app/controllers/courses_controller.rb index c28a694..08a7bd2 100644 --- a/app/controllers/courses_controller.rb +++ b/app/controllers/courses_controller.rb @@ -1,12 +1,3 @@ class CoursesController < TissCrawlerController - def index - end - - def show_basic - end - - def show_detailed - end - end diff --git a/app/controllers/login_controller.rb b/app/controllers/login_controller.rb index 9446e64..8613d06 100644 --- a/app/controllers/login_controller.rb +++ b/app/controllers/login_controller.rb @@ -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 diff --git a/app/controllers/people_controller.rb b/app/controllers/people_controller.rb index a14d5ea..6a10db6 100644 --- a/app/controllers/people_controller.rb +++ b/app/controllers/people_controller.rb @@ -1,12 +1,3 @@ class PeopleController < TissCrawlerController - def index - end - - def show_basic - end - - def show_detail - end - end diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb index 87fa09d..4ede9c8 100644 --- a/app/controllers/projects_controller.rb +++ b/app/controllers/projects_controller.rb @@ -1,12 +1,3 @@ class ProjectsController < TissCrawlerController - def index - end - - def show_basic - end - - def show_detailed - end - end diff --git a/app/controllers/theses_controller.rb b/app/controllers/theses_controller.rb index 1712ca1..de0002d 100644 --- a/app/controllers/theses_controller.rb +++ b/app/controllers/theses_controller.rb @@ -1,12 +1,3 @@ class ThesesController < TissCrawlerController - def index - end - - def show_basic - end - - def show_detailed - end - end diff --git a/app/controllers/tiss_crawler_controller.rb b/app/controllers/tiss_crawler_controller.rb index 7d55aab..5c05876 100644 --- a/app/controllers/tiss_crawler_controller.rb +++ b/app/controllers/tiss_crawler_controller.rb @@ -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 diff --git a/app/views/people/show_basic.html.erb b/app/views/people/show_basic.html.erb index df30083..cdc498b 100644 --- a/app/views/people/show_basic.html.erb +++ b/app/views/people/show_basic.html.erb @@ -1,4 +1,10 @@

People#show basic

-

Find me in app/views/people/show.html.erb

-<%= @people %> \ No newline at end of file +This is the result for your basic people search: +<% @people.each do |person| %> +

+ <%= person.first_name %> + <%= person.last_name %> + <%= button_to people_show_detailed_path %> [add to favs] +

+<% end %>