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:inapply_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:inblock 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:inmap’
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:inblock 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:instart’
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:inload’
from /opt/local/bin/nifty_app:19:in `’


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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs