Skip to content

Instantly share code, notes, and snippets.

@tohyongcheng
Created July 1, 2014 02:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tohyongcheng/4d51d43c2413e83cd109 to your computer and use it in GitHub Desktop.
Save tohyongcheng/4d51d43c2413e83cd109 to your computer and use it in GitHub Desktop.
Reproduce Rails Destroy Bug (Mac OS)
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