What does 'bundle exec rake' versus rake do?
ruby, ruby-on-rails
Solution
`bundle exec` executes a command in the context of the bundle. This command executes the command, making all gems specified in the `Gemfile` available to require in Ruby programs. Very useful when you have many applications with different versions of gems used in them.
Please see docs for more information: http://gembundler.com/man/bundle-exec.1.html
Problem
What is the difference between doing: ``` bundle exec rake ``` and ``` rake ``` I see people doing both, I never do `bundle` before my commands, curious what the reason for it is?