How can I restore my Rails 4 binstubs?

I didn't want to delete my whole bin directory, and it was already added to git. So I just ran:

rake rails:update:bin

and the messages went away.


bundle install --binstubs per https://bundler.io/v1.17/man/bundle-install.1.html

Note that "the --binstubs option is sticky, meaning Bundler will keep adding binstubs for new gems in the future when you run just bundle install". That config is stored under .bundle/config. Per https://coderwall.com/p/vhfxia/generate-only-the-binstubs-that-your-project-needs, it's recommended to bundle binstubs [gem_name] to install only the desired gem's binstubs instead.