Skip to content

Instantly share code, notes, and snippets.

@yaotti
Created December 1, 2013 14:17
Show Gist options
  • Save yaotti/7734533 to your computer and use it in GitHub Desktop.
Save yaotti/7734533 to your computer and use it in GitHub Desktop.
Railsのコンソールをより便利にするpry-rails gem ref: http://qiita.com/yaotti/items/c6e850010f36acedb0e1
[1] pry(main)> show-middleware
use Raven::Rack
use ActionDispatch::Static
use Rack::Lock
use ActiveSupport::Cache::Strategy::LocalCache
...
[2] pry(main)> show-model Item
Item
id: integer
created_at: datetime
updated_at: datetime
...
belongs_to :user
has_many :comments
...
[1] pry(main)> recognize-path '/advent-calendar/2013'
{:action=>"index", :controller=>"advent_calendars", :year=>"2013"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment