I’m running Rails 3.1.1 and Ruby 1.8.7. When I type irb in the OS X Terminal the command prompt ree-1.8.7-2011.03 :001 > is displayed immediately. When I type rails console in the terminal the same command prompt appears after a 1-2 second delay. Also the terminal displays Loading development environment (Rails 3.1.1).
What exactly does the Rails development environment entail?
When you do
rails consoleit’s loading the entire Rails stack (controllers, models, helpers, etc. and all the supporting code for those) as well as connecting to your Rails database. When you just doirb, all you’re loading is the Ruby interpreter.