Rails plugin for displaying name of the current template file
MIT License
Display name of the current template file, including partial template.
This gem inspects log/development.log
and gets partial name from it!
It doesn't override any method.
This gem also supports haml and slim.
Add this line to your application's Gemfile:
group :development do
gem install 'current_template'
end
And then add this line to app/view/layout/application.html.erb
<% if Rails.env == 'development' %>
<%= show_current_template %>
<% end %>
The gem is available as open source under the terms of the MIT License.