Skip to content

Instantly share code, notes, and snippets.

@mrmicahcooper
Created March 1, 2013 19:33
Show Gist options
  • Select an option

  • Save mrmicahcooper/5067133 to your computer and use it in GitHub Desktop.

Select an option

Save mrmicahcooper/5067133 to your computer and use it in GitHub Desktop.
%ul
- Dir.glob('app/views/ui/*.html.haml').sort.each do |file|
- wireframe = File.basename(file,'.html.haml')
- unless wireframe == 'index' || wireframe.match(/^_/)
%li= link_to wireframe.titleize, action: wireframe unless wireframe == 'index'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment