Skip to content
Rails plugin to view source map
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
spec
.gitignore
.travis.yml
CHANGELOG.md
Gemfile
MIT-LICENSE
README.md
Rakefile
view_source_map.gemspec

README.md

ViewSourceMap

Gem Build Status

This is a Rails plugin to insert the path name of a rendered partial view as HTML comment in development environment.

Usage

In your Gemfile

group :development do
  gem "view_source_map"
end

and launch your rails server in development environment:

$ rails s

Tips

Sometimes this adds too much noise to the html when you're developing. There is a simple way to turn it off.

$ DISABLE_VIEW_SOURCE_MAP=1 rails s

or

<%= render "example_disabled", view_source_map: false %>
<%= render partial: "example_disabled_partial", view_source_map: false %>
You can’t perform that action at this time.