Last active
August 29, 2015 14:01
-
-
Save elijahmurray/1be18cf331e7ae07668e to your computer and use it in GitHub Desktop.
Pry Development
This file contains hidden or 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
# Launching Pry console session | |
pry -r ./config/environment | |
############### | |
############### | |
# Set a breakpoint with `binding.pry` | |
#Access shell mode | |
shell-mode | |
# Now you can run commands with a period in front of them. | |
.ls && .cd /app/models | |
#set your default editor | |
Pry.editor = "vim" | |
# edit a model or controller directly | |
edit MyCustomModel | |
# when done editting the file, close and save it, then reload the file and use it in the console | |
load 'app/models/my_custom_model.rb' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment