Sha256: c51d0491b8f37676690614dddcf8e7ac8a8c940019ba4bfdfbc4be07b6cad6a8

Contents?: true

Size: 344 Bytes

Versions: 1

Compression:

Stored size: 344 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, template_path("#{params[:id]}/#{child.chomp('.html.erb')}"), class: 'button button--blue' %>
  <% end %>
</div>

Version data entries

1 entries across 1 versions & 1 rubygems

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