Giter Club home page Giter Club logo

rails-web-debug's Introduction

Rails Web Debug

Rails view inspector in the style of React's Devtools

image

Early Alpha

This extension is still in very early stages and many things don't work. What does work is a list of HTML elements / comments / text nodes and partials based on config.action_view.annotate_rendered_view_with_filenames's comments.

Usage

The Rails server needs to have config.action_view.annotate_rendered_view_with_filenames set to true in config/environments/development.rb. The line is usually already there, commented out at the bottom of the file.

Once this is set, restart the server in dev mode and load it up in your browser. In the dev tools, there should be a "Rails" tab.

Building

You will need pnpm v7 and node v18 installed. The build has only been tested on Linux (specifically Fedora 37) but it should work on MacOS and may work on Windows.

In the root of the repository run pnpm install and then pnpm run build.

The build output is placed in the dist directory, this can then be zipped with pnpm run package to zip the extension (the zip will also go in the dist directory as rails_web_debug-X.X.X.zip).

rails-web-debug's People

Contributors

alduino avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.