pry-rails icon indicating copy to clipboard operation
pry-rails copied to clipboard

Rails >= 3 pry initializer

Results 24 pry-rails issues
Sort by recently updated
recently updated
newest added

Hi, I'm trying to add default methods to the console like this: ``` ruby # config/application.rb # Source http://opensoul.org/2012/11/08/add-helper-methods-to-your-rails-console/ console do require 'console_foo' Rails::ConsoleMethods.include(ConsoleFoo) end ``` Rails [includes](https://github.com/rails/rails/blob/7fb45a6130598703b3da8fe9ef29a5c7a1eb9d09/railties/lib/rails/commands/console.rb#L62-L64) `Rails::ConsoleMethods` into...

Doesn't work: ``` http://example.com/foo/bar (routes a 404). foo/bar (routes as 404). ``` Works fine: ``` /foo/bar ```

We should ship with something equivalent to this, I think: https://github.com/rails/commands

I was updating this gem and looking for a changelog. But there doesn't seem to be one. This would be very helpful for users of this gem.