Last active
August 29, 2015 14:08
-
-
Save qrohlf/622bd3a11b1eab88607d to your computer and use it in GitHub Desktop.
odd rails template error
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
after_bundle do | |
puts "it worked" | |
end | |
#as seen at http://edgeguides.rubyonrails.org/rails_application_templates.html#after-bundle-block |
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
qrohlf at Eve in ~/code/rails_template on master▲ | |
$ rails new -m test.rb foo | |
create | |
create README.rdoc | |
create Rakefile | |
create config.ru | |
create .gitignore | |
create Gemfile | |
create app | |
create app/assets/javascripts/application.js | |
create app/assets/stylesheets/application.css | |
create app/controllers/application_controller.rb | |
create app/helpers/application_helper.rb | |
create app/views/layouts/application.html.erb | |
create app/assets/images/.keep | |
create app/mailers/.keep | |
create app/models/.keep | |
create app/controllers/concerns/.keep | |
create app/models/concerns/.keep | |
create bin | |
create bin/bundle | |
create bin/rails | |
create bin/rake | |
create config | |
create config/routes.rb | |
create config/application.rb | |
create config/environment.rb | |
create config/secrets.yml | |
create config/environments | |
create config/environments/development.rb | |
create config/environments/production.rb | |
create config/environments/test.rb | |
create config/initializers | |
create config/initializers/assets.rb | |
create config/initializers/backtrace_silencers.rb | |
create config/initializers/cookies_serializer.rb | |
create config/initializers/filter_parameter_logging.rb | |
create config/initializers/inflections.rb | |
create config/initializers/mime_types.rb | |
create config/initializers/session_store.rb | |
create config/initializers/wrap_parameters.rb | |
create config/locales | |
create config/locales/en.yml | |
create config/boot.rb | |
create config/database.yml | |
create db | |
create db/seeds.rb | |
create lib | |
create lib/tasks | |
create lib/tasks/.keep | |
create lib/assets | |
create lib/assets/.keep | |
create log | |
create log/.keep | |
create public | |
create public/404.html | |
create public/422.html | |
create public/500.html | |
create public/favicon.ico | |
create public/robots.txt | |
create test/fixtures | |
create test/fixtures/.keep | |
create test/controllers | |
create test/controllers/.keep | |
create test/mailers | |
create test/mailers/.keep | |
create test/models | |
create test/models/.keep | |
create test/helpers | |
create test/helpers/.keep | |
create test/integration | |
create test/integration/.keep | |
create test/test_helper.rb | |
create tmp/cache | |
create tmp/cache/assets | |
create vendor/assets/javascripts | |
create vendor/assets/javascripts/.keep | |
create vendor/assets/stylesheets | |
create vendor/assets/stylesheets/.keep | |
apply /Users/qrohlf/Code/rails_template/test.rb | |
/Users/qrohlf/Code/rails_template/test.rb:1:in `apply': undefined method `after_bundle' for #<Rails::Generators::AppGenerator:0x007fb08b9a5090> (NoMethodError) | |
from /Users/qrohlf/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/actions.rb:223:in `instance_eval' | |
from /Users/qrohlf/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/actions.rb:223:in `apply' | |
from /Users/qrohlf/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/railties-4.1.6/lib/rails/generators/app_base.rb:144:in `apply_rails_template' | |
from (eval):1:in `apply_rails_template' | |
from /Users/qrohlf/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/command.rb:27:in `run' | |
from /Users/qrohlf/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command' | |
from /Users/qrohlf/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `block in invoke_all' | |
from /Users/qrohlf/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `each' | |
from /Users/qrohlf/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `map' | |
from /Users/qrohlf/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `invoke_all' | |
from /Users/qrohlf/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/group.rb:232:in `dispatch' | |
from /Users/qrohlf/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/base.rb:440:in `start' | |
from /Users/qrohlf/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/railties-4.1.6/lib/rails/commands/application.rb:17:in `<top (required)>' | |
from /Users/qrohlf/.rbenv/versions/2.1.3/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:73:in `require' | |
from /Users/qrohlf/.rbenv/versions/2.1.3/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:73:in `require' | |
from /Users/qrohlf/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/railties-4.1.6/lib/rails/cli.rb:14:in `<top (required)>' | |
from /Users/qrohlf/.rbenv/versions/2.1.3/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:73:in `require' | |
from /Users/qrohlf/.rbenv/versions/2.1.3/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:73:in `require' | |
from /Users/qrohlf/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/railties-4.1.6/bin/rails:9:in `<top (required)>' | |
from /Users/qrohlf/.rbenv/versions/2.1.3/bin/rails:23:in `load' | |
from /Users/qrohlf/.rbenv/versions/2.1.3/bin/rails:23:in `<main>' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm having this same issue suddenly. Did you ever find a solution?