Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

view_source_map

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

view_source_map

  • 0.3.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

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 %>

FAQs

Package last updated on 12 Dec 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc