Tag Archives: Debugging

How to view rendered HTML of React component inside JavaScript console

Assume you have defined a React component that has a render function and assign it to variable someReactComponent. Then you can view the rendered version of the React component inside the JavaScript console by doing the following:

Is web-console one of the most useful gems in Rails 4.2?

Rails 4.2 will be the web-console gem included in it and I can see this being one of the most important features added to the framework since it can help Rails developers become even more efficient when developing new features as well as debugging bugs. The Rails console is embedded in your loaded browser page […]

Debugging Routes

To see how an external request would map to your internal path: Sample: To reload routes.rb if you made changes to it: ActionController::Routing::Routes.reload —- To generate a path use generate method: