Identifier your view from controller and action.
Use view_id method your controller or view.
class PostsController < ApplicationController def index view_id #=> "post--index" end end
class Admin::DeletedPostsController < AdminController def show view_id #=> "admin-deleted_posts--show" end end
Add this line to your application's Gemfile:
And then execute:
The gem is available as open source under the terms of the MIT License.