Sha256: 5cee24c05a849944d25d569d18a505059760d53aa01376049316dc1571a38538

Contents?: true

Size: 366 Bytes

Versions: 4

Compression:

Stored size: 366 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

4 entries across 4 versions & 1 rubygems

Version Path
templates-rails-0.1.6 app/views/templates/nested_index.html.erb
templates-rails-0.1.5 app/views/templates/nested_index.html.erb
templates-rails-0.1.4 app/views/templates/nested_index.html.erb
templates-rails-0.1.3 app/views/templates/nested_index.html.erb