Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby Build a Todo List Application with Rails 4 Build a Todo List Application with Rails 4 Relationships

Ozzy Triff
Ozzy Triff
2,649 Points

multiple warnings in command line

/Users/Ozzy/.rvm/gems/ruby-2.2.1/gems/activesupport-4.0.1/lib/active_support/values/time_zone.rb:282: warning: circular argument reference - now
      invoke  active_record
/Users/Ozzy/.rvm/gems/ruby-2.2.1/gems/railties-4.0.1/lib/rails/generators/base.rb:265:in `const_defined?': wrong constant name TodoItemtodoList:references (NameError)
    from /Users/Ozzy/.rvm/gems/ruby-2.2.1/gems/railties-4.0.1/lib/rails/generators/base.rb:265:in `block in class_collisions'
    from /Users/Ozzy/.rvm/gems/ruby-2.2.1/gems/railties-4.0.1/lib/rails/generators/base.rb:251:in `each'
    from /Users/Ozzy/.rvm/gems/ruby-2.2.1/gems/railties-4.0.1/lib/rails/generators/base.rb:251:in `class_collisions'
    from /Users/Ozzy/.rvm/gems/ruby-2.2.1/gems/railties-4.0.1/lib/rails/generators/named_base.rb:193:in `block in check_class_collision'
    from /Users/Ozzy/.rvm/gems/ruby-2.2.1/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
    from /Users/Ozzy/.rvm/gems/ruby-2.2.1/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
    from /Users/Ozzy/.rvm/gems/ruby-2.2.1/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `block in invoke_all'
    from /Users/Ozzy/.rvm/gems/ruby-2.2.1/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `each'
    from /Users/Ozzy/.rvm/gems/ruby-2.2.1/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `map'
    from /Users/Ozzy/.rvm/gems/ruby-2.2.1/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `invoke_all'
    from /Users/Ozzy/.rvm/gems/ruby-2.2.1/gems/thor-0.19.1/lib/thor/group.rb:232:in `dispatch'
    from /Users/Ozzy/.rvm/gems/ruby-2.2.1/gems/thor-0.19.1/lib/thor/invocation.rb:115:in `invoke'
    from /Users/Ozzy/.rvm/gems/ruby-2.2.1/gems/thor-0.19.1/lib/thor/group.rb:277:in `block in _invoke_for_class_method'
    from /Users/Ozzy/.rvm/gems/ruby-2.2.1/gems/thor-0.19.1/lib/thor/shell.rb:68:in `with_padding'
    from /Users/Ozzy/.rvm/gems/ruby-2.2.1/gems/thor-0.19.1/lib/thor/group.rb:266:in `_invoke_for_class_method'
    from /Users/Ozzy/.rvm/gems/ruby-2.2.1/gems/thor-0.19.1/lib/thor/group.rb:133:in `_invoke_from_option_orm'
    from /Users/Ozzy/.rvm/gems/ruby-2.2.1/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
    from /Users/Ozzy/.rvm/gems/ruby-2.2.1/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
    from /Users/Ozzy/.rvm/gems/ruby-2.2.1/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `block in invoke_all'
    from /Users/Ozzy/.rvm/gems/ruby-2.2.1/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `each'
    from /Users/Ozzy/.rvm/gems/ruby-2.2.1/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `map'
    from /Users/Ozzy/.rvm/gems/ruby-2.2.1/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `invoke_all'
    from /Users/Ozzy/.rvm/gems/ruby-2.2.1/gems/thor-0.19.1/lib/thor/group.rb:232:in `dispatch'
    from /Users/Ozzy/.rvm/gems/ruby-2.2.1/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
    from /Users/Ozzy/.rvm/gems/ruby-2.2.1/gems/railties-4.0.1/lib/rails/generators.rb:156:in `invoke'
    from /Users/Ozzy/.rvm/gems/ruby-2.2.1/gems/railties-4.0.1/lib/rails/commands/generate.rb:11:in `<top (required)>'
    from /Users/Ozzy/.rvm/gems/ruby-2.2.1/gems/activesupport-4.0.1/lib/active_support/dependencies.rb:229:in `require'
    from /Users/Ozzy/.rvm/gems/ruby-2.2.1/gems/activesupport-4.0.1/lib/active_support/dependencies.rb:229:in `block in require'
    from /Users/Ozzy/.rvm/gems/ruby-2.2.1/gems/activesupport-4.0.1/lib/active_support/dependencies.rb:214:in `load_dependency'
    from /Users/Ozzy/.rvm/gems/ruby-2.2.1/gems/activesupport-4.0.1/lib/active_support/dependencies.rb:229:in `require'
    from /Users/Ozzy/.rvm/gems/ruby-2.2.1/gems/railties-4.0.1/lib/rails/commands.rb:48:in `<top (required)>'
    from bin/rails:4:in `require'
    from bin/rails:4:in `<main>'

3 Answers

Raymond Sapida
Raymond Sapida
33,049 Points

Hi there,

I think this error is related to how certain versions of gems interact with Rails and I've seen something similar to it with Compass. I'm not sure where it's coming from, but I believe that the issue would be fixed if you update Rails.

Ozzy Triff
Ozzy Triff
2,649 Points

Thank you so much Raymond, i really appreciate it !

Raymond Sapida
Raymond Sapida
33,049 Points

You're welcome and good luck!