459 questions
2
votes
2
answers
4k
views
Why do ActiveRecord queries from console print sql statements?
I'm using pry, and ActiveRecord queries from the console always print out their corresponding SQL statements. I don't want this behavior. Googling around I only see that this must be explicitly ...
2
votes
2
answers
1k
views
How to pause execution using guard and pry?
I have Rails 3.1.1 app with this guardfile:
guard 'bundler' do
watch('Gemfile')
end
guard 'rails' do
watch('Gemfile.lock')
watch(%r{^(config|lib)/.*})
end
When my app is running under guard, a ...
0
votes
1
answer
372
views
Why is my pry not using coderay to make output pretty?
Why is my pry not using coderay to make output pretty?
I don't get pretty awesome_print-style object/output printing... just boring irb-style one-line output.
This question implies it should Just ...
41
votes
9
answers
20k
views
pry gem how to reload?
I am using the Pry gem in my Rails console, but the pry flavored rails-console seems to have lost the reload! method for reloading models and stuff.
Here's how I start the pry console
c:\rails\app&...
16
votes
2
answers
10k
views
How can I clear the rails console history
When I run rails c and press the up key when irb starts up, I can see the last commands I entered when my app dropped to irb after encountering a debugger command for the ruby-debug gem. I would not ...