https://github.com/buren/web-console-param
Open Rails web-console by adding ?web_console=1 to any page
https://github.com/buren/web-console-param
Last synced: 3 months ago
JSON representation
Open Rails web-console by adding ?web_console=1 to any page
- Host: GitHub
- URL: https://github.com/buren/web-console-param
- Owner: buren
- License: mit
- Created: 2015-01-24T20:07:10.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2021-12-03T10:10:53.000Z (over 3 years ago)
- Last Synced: 2025-02-19T19:41:07.104Z (3 months ago)
- Language: Ruby
- Size: 237 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# WebConsoleParam
Open Rails web-console by adding `?web_console=1` to any page. You could implement this yourself in a couple of lines, but if you're really lazy.. go ahead and use this gem.
It adds a `before_action` to `ActionController::Base`, which calls `WebConsole#console` if the params include `web_console=`.
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'web-console', '~> 2.0', group: [:development] # the web-console gem needs to be defined
gem 'web-console-param', group: [:development]
```
#### For security reasons only install this in your Gemfile's development group.And then execute:
$ bundle
## Usage
There is no other setup required besides adding the gem to your Gemfile. It will automatically add a `before_action` to anything that inherits from `ActionController::Base`.
## Contributing
1. Fork it (`git clone https://github.com/buren/web-console-param`)
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request