Catch render errors and display 'Couldn't find anything' instead of stacktrace
This commit is contained in:
@@ -1,20 +1,24 @@
|
||||
<h1>Results for "<%= params[:search_term] %>"</h1>
|
||||
|
||||
<ul class="theses-list">
|
||||
<% @theses.each_with_index do |thesis| %>
|
||||
<li class="thesis">
|
||||
<%= link_to crawlers_theses_crawler_show_detail_url(:id => thesis['id'], :title => thesis['title']) do %>
|
||||
<% if @theses %>
|
||||
<% @theses.each_with_index do |thesis| %>
|
||||
<li class="thesis">
|
||||
<%= link_to crawlers_theses_crawler_show_detail_url(:id => thesis['id'], :title => thesis['title']) do %>
|
||||
<span class="list-link">
|
||||
<span class="thesis-title">
|
||||
<%= thesis['title'] %>
|
||||
</span>
|
||||
</span>
|
||||
<% end %>
|
||||
<span class="add-to-fav">
|
||||
<% end %>
|
||||
<span class="add-to-fav">
|
||||
<%= link_to crawlers_theses_crawler_add_to_fav_url(:id => thesis['id'], :title => thesis['title']) do %>
|
||||
<%= show_svg('favorite-24px.svg') %>
|
||||
<% end %>
|
||||
</span>
|
||||
</li>
|
||||
</li>
|
||||
<% end %>
|
||||
<% else %>
|
||||
Could not find anything... Please try again.
|
||||
<% end %>
|
||||
</ul>
|
||||
|
||||
Reference in New Issue
Block a user