I\'m not sure if I\'m doing the best approach here, but I have a block of data that I want to show after a search is done and to not be there at all before. First of all, there
Assuming I am following you right, you do this at the view level.
<% if !@my_search_data.nil? %> <% render :partial => 'foo/bar' %> <% end %>
Hope that helps. If not, maybe post an example of your code.