Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uninitialized constant RailsWizard::Command::Tempfile (NameError) #363

Open
shaoyangyu opened this issue Nov 20, 2017 · 1 comment
Open

Comments

@shaoyangyu
Copy link
Contributor

Hello,

No one else has NameError issue like this? :)

ruby 2.3.1 p112

ruby-2.3.1 branch:master o:$ rc new haha -r core
Would you like to skip Test::Unit? (yes for RSpec) (y/n) y
Would you like to skip Active Record? (yes for MongoDB) (y/n) y
What gem would you like to add? (blank to finish)
/home/shaoyang/.rvm/gems/ruby-2.3.1/gems/rails_apps_composer-3.1.27/lib/rails_wizard/command.rb:179:in run_template': uninitialized constant RailsWizard::Command::Tempfile (NameError) Did you mean? RailsWizard::Template from /home/shaoyang/.rvm/gems/ruby-2.3.1/gems/rails_apps_composer-3.1.27/lib/rails_wizard/command.rb:25:in new'
from /home/shaoyang/.rvm/gems/ruby-2.3.1/gems/thor-0.20.0/lib/thor/command.rb:27:in run' from /home/shaoyang/.rvm/gems/ruby-2.3.1/gems/thor-0.20.0/lib/thor/invocation.rb:126:in invoke_command'
from /home/shaoyang/.rvm/gems/ruby-2.3.1/gems/thor-0.20.0/lib/thor.rb:387:in dispatch' from /home/shaoyang/.rvm/gems/ruby-2.3.1/gems/thor-0.20.0/lib/thor/base.rb:466:in start'
from /home/shaoyang/.rvm/gems/ruby-2.3.1/gems/rails_apps_composer-3.1.27/bin/rails_apps_composer:7:in <top (required)>' from /home/shaoyang/.rvm/gems/ruby-2.3.1/bin/rails_apps_composer:23:in load'
from /home/shaoyang/.rvm/gems/ruby-2.3.1/bin/rails_apps_composer:23:in `

'

@shaoyangyu
Copy link
Contributor Author

After require 'tempfile', everything works well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant