Kristian
2010-Jan-30 11:24 UTC
Error applying template with custom rails3 application generator
kristian-mandrups-macbook-pro:~ kristianconsult$ nifty_app_template_local tryme blip create create README ... create app create app/controllers/application_controller.rb create app/helpers/application_helper.rb .... create tmp/pids create vendor/plugins create vendor/plugins/.gitkeep /opt/local/lib/ruby/gems/1.9.1/gems/very_nifty_generators-0.2.0/lib/ generators/nifty/app/app_generator.rb:152:in `rescue in apply_rails_template'': uninitialized constant Nifty::Generators::AppGenerator::Error (NameError) from /opt/local/lib/ruby/gems/1.9.1/gems/very_nifty_generators-0.2.0/ lib/generators/nifty/app/app_generator.rb:150:in `apply_rails_template'' from /opt/local/lib/ruby/gems/1.9.1/gems/railties-3.0.pre/lib/rails/ vendor/thor-0.12.3/lib/thor/task.rb:32:in `run'' from /opt/local/lib/ruby/gems/1.9.1/gems/railties-3.0.pre/lib/rails/ vendor/thor-0.12.3/lib/thor/invocation.rb:108:in `block in invoke'' from /opt/local/lib/ruby/gems/1.9.1/gems/railties-3.0.pre/lib/rails/ vendor/thor-0.12.3/lib/thor/invocation.rb:117:in `each'' from /opt/local/lib/ruby/gems/1.9.1/gems/railties-3.0.pre/lib/rails/ vendor/thor-0.12.3/lib/thor/invocation.rb:117:in `map'' from /opt/local/lib/ruby/gems/1.9.1/gems/railties-3.0.pre/lib/rails/ vendor/thor-0.12.3/lib/thor/invocation.rb:117:in `invoke'' from /opt/local/lib/ruby/gems/1.9.1/gems/railties-3.0.pre/lib/rails/ vendor/thor-0.12.3/lib/thor/group.rb:35:in `block in start'' from /opt/local/lib/ruby/gems/1.9.1/gems/railties-3.0.pre/lib/rails/ vendor/thor-0.12.3/lib/thor/base.rb:354:in `start'' from /opt/local/lib/ruby/gems/1.9.1/gems/railties-3.0.pre/lib/rails/ vendor/thor-0.12.3/lib/thor/group.rb:28:in `start'' from /opt/local/lib/ruby/gems/1.9.1/gems/very_nifty_generators-0.2.0/ bin/nifty_app:28:in `<top (required)>'' from /opt/local/bin/nifty_app:19:in `load'' from /opt/local/bin/nifty_app:19:in `<main>'' .. -- def apply_rails_template 152: apply rails_template if rails_template rescue Thor::Error, LoadError, Errno::ENOENT => e raise Error, "The template [#{rails_template}] could not be loaded. Error: #{e}" end -- -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.