refactoring of project
This commit is contained in:
parent
c0a5b794ec
commit
c5cc225ca6
@ -1,12 +1,3 @@
|
||||
class CoursesController < TissCrawlerController
|
||||
|
||||
def index
|
||||
end
|
||||
|
||||
def show_basic
|
||||
end
|
||||
|
||||
def show_detailed
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
@ -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
|
||||
|
||||
@ -1,12 +1,3 @@
|
||||
class PeopleController < TissCrawlerController
|
||||
|
||||
def index
|
||||
end
|
||||
|
||||
def show_basic
|
||||
end
|
||||
|
||||
def show_detail
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
@ -1,12 +1,3 @@
|
||||
class ProjectsController < TissCrawlerController
|
||||
|
||||
def index
|
||||
end
|
||||
|
||||
def show_basic
|
||||
end
|
||||
|
||||
def show_detailed
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
@ -1,12 +1,3 @@
|
||||
class ThesesController < TissCrawlerController
|
||||
|
||||
def index
|
||||
end
|
||||
|
||||
def show_basic
|
||||
end
|
||||
|
||||
def show_detailed
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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 %>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user