Created
December 1, 2013 14:17
-
-
Save yaotti/7734533 to your computer and use it in GitHub Desktop.
Railsのコンソールをより便利にするpry-rails gem ref: http://qiita.com/yaotti/items/c6e850010f36acedb0e1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[1] pry(main)> show-middleware | |
use Raven::Rack | |
use ActionDispatch::Static | |
use Rack::Lock | |
use ActiveSupport::Cache::Strategy::LocalCache | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[2] pry(main)> show-model Item | |
Item | |
id: integer | |
created_at: datetime | |
updated_at: datetime | |
... | |
belongs_to :user | |
has_many :comments | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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