Start a Rails Console in the Browser
When you generate a new Rails app, it comes with the web-console
gem, a handy helper for embedding a rails console in the browser.
This can be useful in development
for debugging things in the same process as your webserver. In my case, I used it to test out some action cable related things.
In your controller, just add console
to the action -
class AppointmentsController < ApplicationController
def index
console
end
end
https://github.com/rails/web-console
Tweet