refactoring

This commit is contained in:
Marco Zeisler
2020-04-21 13:52:27 +02:00
parent c5cc225ca6
commit e0a21f180f
17 changed files with 26 additions and 35 deletions
-8
View File
@@ -1,11 +1,3 @@
<h1>People#index</h1>
<p>Find me in app/views/people/index.html.erb</p>
<%= form_tag('/tisscrawler/search', :method => "get") do %>
<%= hidden_field_tag(:context, 'People') %>
<%= hidden_field_tag(:api, '/api/person/v22/psuche') %>
<%= hidden_field_tag(:search_parameter, 'q') %>
<%= label_tag(:search_term, "Search for:") %>
<%= text_field_tag(:search_term) %>
<%= submit_tag("Search") %>
<% end %>
-10
View File
@@ -1,10 +0,0 @@
<h1>People#show basic</h1>
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 %>
-4
View File
@@ -1,4 +0,0 @@
<h1>People#show detailed</h1>
<p>Find me in app/views/people/show.html.erb</p>
<%= @people %>