Menu
  • HOME
  • TAGS

Extend IRB main methods

ruby-on-rails,ruby,irb,hirb

In Rails, you can conditionally mix methods into the console when the Rails app is started via IRB. This is done using the console configuration block in your application.rb file. module MyApp class Application < Rails::Application # ... console do # define the methods here end end end In your...

Rails Hirb in console for outputting long data breaks console

ruby-on-rails,rails-console,hirb

You can navigate through your data with up and down arrows, or quit with 'q'.