<% unless all_results.nil? || all_results.empty?%> <% all_results.each do |item|%> <% case item.type %> <% when 'user'%> <% when 'course'%> <% when 'attachment'%> <% when 'project'%> <%end %> <% end %>
<%= paginate all_results,:params => {:controller => 'welcome', :action => 'search',:search_type=>'all'}%>
<% end %>