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 trialJohn Simoneau
Courses Plus Student 8,105 PointsRails Console not fully loading
I know this course is a bit outdated but I've been doing well with it so far. Except it appears the Rails Console won't fully load for me. When I run Rails Console I get this:
Js-MacBook-Pro:treebook jsimoneau$ rails console
/Users/jsimoneau/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-3.2.18/lib/active_support/values/time_zone.rb:270: warning: circular argument reference - now
/Users/jsimoneau/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-3.2.18/lib/active_support/dependencies.rb:251:in require': cannot load such file -- test/unit/testcase (LoadError)
from /Users/jsimoneau/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-3.2.18/lib/active_support/dependencies.rb:251:in
block in require'
from /Users/jsimoneau/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-3.2.18/lib/active_support/dependencies.rb:236:in load_dependency'
from /Users/jsimoneau/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-3.2.18/lib/active_support/dependencies.rb:251:in
require'
from /Users/jsimoneau/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-3.2.18/lib/active_support/test_case.rb:1:in <top (required)>'
from /Users/jsimoneau/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-3.2.18/lib/active_support/dependencies.rb:251:in
require'
from /Users/jsimoneau/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-3.2.18/lib/active_support/dependencies.rb:251:in block in require'
from /Users/jsimoneau/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-3.2.18/lib/active_support/dependencies.rb:236:in
load_dependency'
from /Users/jsimoneau/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-3.2.18/lib/active_support/dependencies.rb:251:in require'
from /Users/jsimoneau/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-3.2.18/lib/rails/console/app.rb:2:in
<top (required)>'
from /Users/jsimoneau/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-3.2.18/lib/active_support/dependencies.rb:251:in require'
from /Users/jsimoneau/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-3.2.18/lib/active_support/dependencies.rb:251:in
block in require'
from /Users/jsimoneau/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-3.2.18/lib/active_support/dependencies.rb:236:in load_dependency'
from /Users/jsimoneau/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-3.2.18/lib/active_support/dependencies.rb:251:in
require'
from /Users/jsimoneau/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-3.2.18/lib/rails/application.rb:312:in initialize_console'
from /Users/jsimoneau/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-3.2.18/lib/rails/application.rb:152:in
load_console'
from /Users/jsimoneau/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-3.2.18/lib/rails/commands/console.rb:27:in start'
from /Users/jsimoneau/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-3.2.18/lib/rails/commands/console.rb:8:in
start'
from /Users/jsimoneau/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-3.2.18/lib/rails/commands.rb:41:in <top (required)>'
from script/rails:6:in
require'
from script/rails:6:in `<main>'
Js-MacBook-Pro:treebook jsimoneau$
4 Answers
John Simoneau
Courses Plus Student 8,105 PointsIn another thread I posted on the subject... Andrew Gay (if you're a points collector then post something in an ANSWER below and I'd be glad to mark it as best answer Andrew) suggested putting
gem 'test-unit'
in the gem file. This did the trick so that the console at least loaded. Unfortunately I decided to abandon work on this course as I felt it was so outdated it was causing more harm then good. I was googling quite a bit for fixes and finding them but it was just taking all of my focus off the actual course content and learning experience.
I hope they update this course for others. I can't say that I didn't know what I was getting myself into as I did read some comments prior to starting... and I likely could have finished... but at the cost of what I felt best for my own learning.
Noah A
4,144 PointsAre you typing in rails
or rails console
/rails c
?
John Simoneau
Courses Plus Student 8,105 Pointsrails console
John Simoneau
Courses Plus Student 8,105 PointsI did install the version of Rails that they used in the video but yet the newest version of Ruby I believe. Wonder if that could be the conflict causing this? Or if I installed something in the wrong location. I don't think I did but I'm not 100% sure. Everything else seems to work but this. I've got pretty far into the tutorial so I assume rails is working to some extent...
Thanks for any help