<% title = "Search" title << " for \"#{params[:q]}\"" if params.has_key?(:q) and not params[:q].blank? if params.has_key?(:type) and not params[:type].blank? if params[:type].kind_of? String title << " in #{I18n.t("#{params[:type]}._plural")}" else # an array title << " in #{params[:type].map{|t| I18n.t("#{t}._plural")}.join(",")}" end end %> <%= setup_context :title => title %> <%= render_aspace_partial :partial => "results" %>