Skip to content

Instantly share code, notes, and snippets.

@brentd
Created September 15, 2008 21:16
Show Gist options
  • Save brentd/10946 to your computer and use it in GitHub Desktop.
Save brentd/10946 to your computer and use it in GitHub Desktop.
-for model in MODEL_TYPES
-if can_view?(model)
%h2= model.pluralize
=render :partial => "#{model.tableize}/list"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment