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 when "People" result = TissCrawler.search(params) @people = result.map { |person| Tiss::Person.new(person) } # render(people_show_path, detail: false) render template: people_show_basic_path else flash.write[:alert] = "Unknown search context" end end require 'tiss/tiss_crawler' def show_basic result = TissCrawler.search(params) @people = result.map { |person| Tiss::Person.new(person) } # render(people_show_path, detail: false) render template: people_show_basic_path end end