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

APIs

Downloaded the code but was unable to run. I even tried to run $ bundle update && bundle install in the command line.

Firstly this tutorial is really out of date and too old. I finished the Ruby on Rails track then now I would like to move forward to learning how to build a Rest API via Rails.

Here is the error I have

:3  rails server
/Users/my_username/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/activesupport-4.1.0/lib/active_support/values/time_zone.rb:285: warning: circular argument reference - now
DEPRECATION WARNING: The factory_girl gem is deprecated. Please upgrade to factory_bot. See https://github.com/thoughtbot/factory_bot/blob/v4.9.0/UPGRADE_FROM_FACTORY_GIRL.md for further instructions. (called from <top (required)> at /Users/my_username/Desktop/odot_treehouse/config/application.rb:7)
=> Booting WEBrick
=> Rails 4.1.0 application starting in development on http://0.0.0.0:3000
=> Run `rails server -h` for more startup options
=> Notice: server is listening on all interfaces (0.0.0.0). Consider using 127.0.0.1 (--binding option)
=> Ctrl-C to shutdown server
/Users/my_username/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/activesupport-4.1.0/lib/active_support/core_ext/numeric/conversions.rb:121: warning: constant ::Fixnum is deprecated
/Users/my_username/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/activesupport-4.1.0/lib/active_support/core_ext/numeric/conversions.rb:121: warning: constant ::Bignum is deprecated
Exiting
Traceback (most recent call last):
    5437: from bin/rails:3:in `<main>'
    5436: from bin/rails:3:in `load'
    5435: from /Users/my_username/Desktop/odot_treehouse/bin/spring:16:in `<top (required)>'
    5434: from /Users/my_username/.rbenv/versions/2.5.1/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
    5433: from /Users/my_username/.rbenv/versions/2.5.1/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
    5432: from /Users/my_username/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/spring-1.7.2/lib/spring/binstub.rb:11:in `<top (required)>'
    5431: from /Users/my_username/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/spring-1.7.2/lib/spring/binstub.rb:11:in `load'
    5430: from /Users/my_username/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/spring-1.7.2/bin/spring:49:in `<top (required)>'
     ... 5425 levels...
       4: from /Users/my_username/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/activesupport-4.1.0/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
       3: from /Users/my_username/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/activesupport-4.1.0/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
       2: from /Users/my_username/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/activesupport-4.1.0/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
       1: from /Users/my_username/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/activesupport-4.1.0/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
/Users/my_username/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/activesupport-4.1.0/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>': stack level too deep (SystemStackError)