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

NameError in UserFriendshipsController#create

On Accepting Friendships when I click to add a friend, my app blows up with this error:

uninitialized constant Mail::Ruby19

app/mailers/user_notifier.rb:1:in `<top (required)>'
app/models/user_friendship.rb:29:in `send_request_email'
app/models/user_friendship.rb:23:in `block in request'
app/models/user_friendship.rb:19:in `request'
app/controllers/user_friendships_controller.rb:34:in `create'

This error occurred while loading the following files:
   mail

Any ideas?

1 Answer

Thats actually the second error it throws, this is the first one:

SystemStackError (stack level too deep):
  actionpack (3.2.15) lib/action_dispatch/middleware/reloader.rb:70