Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Regenerate and Springify Rails 4 binstubs
cd my_rails_app_root_dir
rm bin/*
bundle exec rake rails:update:bin
bundle binstubs rspec-core
spring binstub --all
@lucianosousa

This comment has been minimized.

Copy link

commented Jan 12, 2018

rails 5.x
bundle exec rake app:update:bin

@jsimpson

This comment has been minimized.

Copy link

commented Mar 7, 2018

Good grief. Thanks for this! My binstubs were inexplicably jacked up by a co-workers recent commit and it took me quite a while to realize it was the binstubs that were bad and an even longer time to sort out how to update them in Rails 5.1.x.

@JoshCheek

This comment has been minimized.

Copy link

commented Jun 18, 2018

Update: it's apparently now bundle exec rake app:updates:bin, and also note that you need the gem spring-commands-rspec

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.