Skip to content

Instantly share code, notes, and snippets.

@stefanpenner
Forked from eladmeidar/gist:169775
Created August 18, 2009 15:21
Show Gist options
  • Save stefanpenner/169776 to your computer and use it in GitHub Desktop.
Save stefanpenner/169776 to your computer and use it in GitHub Desktop.
# Controller
def index
@results = SexOffender.all
end
# View
<% if @results.blank? %>
<span>no sex offenders were found</span>
<% else %>
..do your own tablez
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment