class TissCrawlerController < ApplicationController require 'tiss/tiss_crawler' def index end def people_search end def people_show_basic result = TissCrawler.search(params) $people = result.map { |person| Tiss::Person.new(person) } @people = $people end def people_show_detail people = $people index = params[:index] @person = people[Integer(index)] end end