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 Building Social Features in Ruby on Rails Creating Friendships Creating a Has Many Through Association

christin mam
christin mam
43 Points

i need help

ssss

ruby.rb
class User < ActiveRecord::Base
  "hello"
end
Jason Anders
Jason Anders
Treehouse Moderator 145,860 Points

HI Christin,

What exactly is your question?

"ssss" doesn't clarify anything. Without a proper question, it's really tough for the students to be able to help you work out what is troubling you.

  • Things like what that challenge / quiz / or code is asking of you.
  • What code you have tried.
  • Any errors you are recieving.
  • etc.

All this will greatly help us be able to help you. :dizzy:

1 Answer

In the future we would appreciate it if you gave us a better description of what you're trying to ask. The question that you're looking at is a question on active record relationships. Let's say that I had the class Accountmanager and we also had another class called account.

We would specify that an Accountmanager had many accounts this way:

class Acountmanager < ActiveRecord::Base has_many :Accounts end

Try to see if this leads you to an answer. If not, go for a walk and revisit the problem.

Sorry trying to do this from the phone screwed up the new lines on this. You should be seeing the new line after the word base send a new line after the word accounts.