Created
July 1, 2014 02:26
-
-
Save tohyongcheng/4d51d43c2413e83cd109 to your computer and use it in GitHub Desktop.
Reproduce Rails Destroy Bug (Mac OS)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export app_name="reproduce_rails_routing_bug" | |
echo $app_name | |
rails new ${app_name} | |
cd ${app_name} | |
rails g scaffold foo | |
cd config | |
sed -i '' '/^$/d' routes.rb | |
sed -i '' '/#/d' routes.rb | |
cd .. | |
rails destroy scaffold foo | |
cat config/routes.rb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment