You can use xray-rails gem:
In your Gemfile:
group :development do
gem 'xray-rails'
end
Then:
bundle && rm -rf tmp/cache/assets
restart your application and it is it. You can now access your layouts/templates/partial data in browser using ctrl+shift+x
(or cmd+shift+x
in Mac).