Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pretty_rails_console

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pretty_rails_console

  • 0.1.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Make Your Rails Console Pretty

This gem was inspired by awesome_rails_console, Using pry in production, jazz_hands and jazz_fingers.

The pros of pretty_rails_console are:

  • Less gem dependances (Only pry-rails and awesome_print other than rails. The rest are optional)
  • Simpler prompt modification (Similar to the default prompt you're already familiar with)
  • No need to worry about configuration (because there are not much options anyway)

Installation

Gemfile:

gem 'pretty_rails_console'

In terminal:

bundle
rails g pretty_rails_console:install # This will include dependency gems to the gemfile
# you should review your Gemfile at this point (and adjust if needed)
bundle
spring stop # to restart spring, if you are using it
rails c

Features

Show Rails env and project name in the prompt

Prevents you from accidentally changing production data to the wrong project.

Beautiful formatting with pry and awesome_print

Make it easy to read. Reduce the pain while debugging.

# 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

Print table in console

With Hirb (optional enhancement)

Very handy when you need to paste some data into issue tracking system.

Debugger

With pry-byebug (optional enhancement)

Insert binding.pry (break point) to start debugging. See pry-byebug For detail.

FAQs

Package last updated on 18 Jan 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc