Sha256: c9f082041635198affe1017bfedf2069b94731e582e6df8148fd28afedd1622c

Contents?: true

Size: 361 Bytes

Versions: 2

Compression:

Stored size: 361 Bytes

Contents

<% provide(:title, params[:id].gsub('/', ' / ').titleize) %>

<div>
  <% Dir.children("./app/views/templates/#{params[:id]}").excluding('partials').sort.each do |child| %>
    <%= link_to child.chomp('.html.erb').humanize.titleize, templates_engine.template_path("#{params[:id]}/#{child.chomp('.html.erb')}"), class: 'button button--blue' %>
  <% end %>
</div>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
templates-rails-0.1.2 app/views/templates/nested_index.html.erb
templates-rails-0.1.1 app/views/templates/nested_index.html.erb