Skip to content

Instantly share code, notes, and snippets.

@atz
Last active October 28, 2016 23:15
Show Gist options
  • Save atz/5b0aadd64f3270291f059ee5f28be9ce to your computer and use it in GitHub Desktop.
Save atz/5b0aadd64f3270291f059ee5f28be9ce to your computer and use it in GitHub Desktop.
binstubs needed?
generate blacklight:search_builder
Looks like your app's ./bin/rails is a stub that was generated by Bundler.
In Rails 4, your app's bin/ directory contains executables that are versioned
like any other source code, rather than stubs that are generated on demand.
Here's how to upgrade:
bundle config --delete bin # Turn off Bundler's stub generator
rake rails:update:bin # Use the new Rails 4 executables
git add bin # Add bin/ to source control
You may need to remove bin/ from your .gitignore as well.
When you install a gem whose executable you want to use in your app,
generate it and add it to source control:
bundle binstubs some-gem-name
git add bin/new-executable
...
Bundle complete! 33 Gemfile dependencies, 128 gems now installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.
generate blacklight:assets
/Users/atz/.rvm/rubies/ruby-2.3.1/bin/ruby: No such file or directory -- bin/rails (LoadError)
generate blacklight:document
/Users/atz/.rvm/rubies/ruby-2.3.1/bin/ruby: No such file or directory -- bin/rails (LoadError)
generate blacklight:search_builder
/Users/atz/.rvm/rubies/ruby-2.3.1/bin/ruby: No such file or directory -- bin/rails (LoadError)
generate blacklight:models
/Users/atz/.rvm/rubies/ruby-2.3.1/bin/ruby: No such file or directory -- bin/rails (LoadError)
generate blacklight:user
/Users/atz/.rvm/rubies/ruby-2.3.1/bin/ruby: No such file or directory -- bin/rails (LoadError)
generate blacklight:controller
/Users/atz/.rvm/rubies/ruby-2.3.1/bin/ruby: No such file or directory -- bin/rails (LoadError)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment