Skip to content

Instantly share code, notes, and snippets.

@bmaland
Created March 7, 2012 09:36
Show Gist options
  • Save bmaland/1992205 to your computer and use it in GitHub Desktop.
Save bmaland/1992205 to your computer and use it in GitHub Desktop.
Loop through views in a Serve project
<ul>
<% Dir.glob("views/[^_]*").each do |file| %>
<li><a href="/<%= file %>"><%= file %></a></li>
<% end %>
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment