Use TkInspect with Rails applications.
At this time it provides:
- A custom inspector for
ActiveRecord::Relation
- A panel to perform raw SQL queries
See TkInspect for more details about using the environment.
Add this line to your application's Gemfile:
gem 'tk_inspect_rails'
And then execute:
$ bundle
Or install it yourself as:
$ gem install tk_inspect_rails
You need to add the tk_inspect_rails
gem to your Rails project and
run bundle install
.
After that you can launch the graphic console with Rails loaded with this command.
bundle exec tk_rails_console
Inside the console you should have access to all classes in your app, including models.
WARNING: This is very much a work in progress. More documentation to come!!
Josep Egea
See TkInspect.
Bug reports and pull requests are welcome on GitHub at https://github.com/josepegea/tk_inspect_rails. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
The gem is available as open source under the terms of the MIT License.
Everyone interacting in the TkComponent project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.