Guest User

Untitled

a guest
Nov 9th, 2017
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. Looks like your app's ./bin/rails is a stub that was generated by Bundler.
  2.  
  3. In Rails 5, your app's bin/ directory contains executables that are versioned
  4. like any other source code, rather than stubs that are generated on demand.
  5.  
  6. Here's how to upgrade:
  7.  
  8. bundle config --delete bin # Turn off Bundler's stub generator
  9. rails app:update:bin # Use the new Rails 5 executables
  10. git add bin # Add bin/ to source control
  11.  
  12. You may need to remove bin/ from your .gitignore as well.
  13.  
  14. When you install a gem whose executable you want to use in your app,
  15. generate it and add it to source control:
  16.  
  17. bundle binstubs some-gem-name
  18. git add bin/new-executable
Add Comment
Please, Sign In to add comment