Skip to content

Instantly share code, notes, and snippets.

@eladmeidar
Created August 18, 2009 15:20
Show Gist options
  • Save eladmeidar/169775 to your computer and use it in GitHub Desktop.
Save eladmeidar/169775 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