# Make Your Rails Console Awesome
This gem was inspired by [Using pry in production](https://bugsnag.com/blog/production-pry), [jazz_hands](https://github.com/nixme/jazz_hands) and [jazz_fingers](https://github.com/plribeiro3000/jazz_fingers).
The pros of `awesome_rails_console` are:
* Less gem dependances (You can remove enhancement gems easily)
* Simpler prompt modification (Closer to the default pry prompt you're familiar with)
* No need to worry about configuration (Not much configurable options available)
## TL; DR;
Gemfile:
``` ruby
gem 'awesome_rails_console'
```
In terminal:
``` sh
bundle
rails g awesome_rails_console:install #This will include dependancy gems to the gemfile
bundle
spring stop
rails c
```
## Features
### Show Rails env and project name in the prompt
Prevents you from accidentally changing production data to the wrong project.
![](http://i.imgur.com/CKrJYqk.png)
### Beautiful formatting with pry and awesome_print
Make it easy to read. Reduce the pain while debugging.
```ruby
# Try following statements in rails console:
[:apple, :orange, :banana]
{ a: 1, b: 2, c: 3 }
1.methods
(1..100).to_a
ap (1..100).to_a, limit: 5
```
![](http://i.imgur.com/I1iV8n9.png)
### Print table in console
With Hirb (optional enhancement)
Very handy when you need to paste some data into issue tracking system.
![](http://i.imgur.com/9z3XDSU.png)
### Debugger
With pry-byebug (optional enhancement)
Insert `binding.pry` (break point) to start debugging. See [pry-byebug](https://github.com/deivid-rodriguez/pry-byebug) For detail.
![](http://i.imgur.com/mJbC24h.png)
## Installation
Add this line to your application's `Gemfile`:
```ruby
gem 'awesome_rails_console'
```
And then execute in terminal:
$ bundle
Install and config enhancement gems: (optinal)
$ rails generate awesome_rails_console:install
Finally, restart your rails console. (You may need to restart `spring` also)
## Changelog
See `CHANGELOG.md`.
## Development
After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release` to create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
## Contributing
1. Fork it ( https://github.com/ascendbruce/awesome_rails_console/fork )
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
没有合适的资源?快使用搜索试试~ 我知道了~
awesome_rails_console, Rails 控制台增强使你的Rails 控制台更加出色.zip
共19个文件
rb:6个
md:2个
rakefile:1个
需积分: 10 0 下载量 81 浏览量
2019-10-10
05:40:11
上传
评论
收藏 10KB ZIP 举报
温馨提示
awesome_rails_console, Rails 控制台增强使你的Rails 控制台更加出色 使你的Rails 控制台非常出色这个 gem 是由使用pry生产,jazz_hands和 jazz_fingers的激发 was 。awesome_rails_console的优点是:减少 gem dependances ( 你可以
资源推荐
资源详情
资源评论
收起资源包目录
awesome_rails_console.zip (19个子文件)
awesome_rails_console-master
.gitignore 87B
README.md 3KB
CHANGELOG.md 947B
bin
console 346B
setup 115B
Gemfile 106B
LICENSE 1KB
.rspec 31B
spec
awesome_rails_console_spec.rb 201B
spec_helper.rb 91B
awesome_rails_console.gemspec 1KB
.travis.yml 30B
lib
generators
awesome_rails_console
install
install_generator.rb 868B
USAGE 166B
templates
.pryrc 114B
awesome_rails_console
railtie.rb 926B
version.rb 51B
awesome_rails_console.rb 99B
Rakefile 28B
共 19 条
- 1
资源评论
weixin_38744270
- 粉丝: 329
- 资源: 2万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 上课教材ppt-数据库系统原理及MySQL应用教程(第二版)课件.zip
- usb gadget 学习资料
- 智能毕设项目开发基础教程
- 实用脚本工具:自动化编程基础教程
- LabVIEW编程入门与实践基础教程
- 嵌入式开发入门与实践基础教程
- JFinal-Python资源
- 胆小菇 Python Selenium 爬虫入门:批量将豆瓣书影标记设置为"仅自己可见"
- bboss-plugins-kafka
- iotucy-websocket
- 胆小菇 Python Selenium 爬虫入门:批量将豆瓣书影标记设置为"仅自己可见"
- StudentManageSystem-建立学生信息链表
- Sa-Token-java
- 基于Atlas 200I DK A2研究的机械臂目标检测系统-注意力机制
- ga_network_reconfiguration-遗传算法
- tomcat-tomcat
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功