Accessing a referenced field using mongoid/mongodb/rails?

"YOU AND THE ART OF ONLINE DATING" is the only product on the market that will take you step-by-step through the process of online dating, provide you with the resources to help ensure success. Get it now!

If you want a referenced association you need to change it to this.

If you want a referenced association you need to change it to this. Class Post #... referenced_in :topic end class Topic #... references_many :posts end Then try changing your collection_select line to this: "Select a Topic" %.

I thought that would make that method available. – ryanb Feb 1 at 22:45 hey that I was it. I didn't read carefully enough.

Thanks a lot you're the best, and I seriously owe you one. Whenever you need it. – moctopus Feb 2 at 1:37 would you say that this is the best method for a user selecting a topic for a post/article?

– moctopus Feb 2 at 1:51.

Your post. Rb file has a references_one :topic, but in your index view, you're doing for topic in @post. Topics, implying that a post can have many topics.

Either you need to change your model to say references_many :topics or change your view to work with only having one topic per post.

User593120 Did you tried this in your index.html. Erb || || Topics.

When I do that I get nothing returned. This makes me think that when I'm creating/updating a post, the topic. Category selection isn't saving.

– moctopus Jan 31 at 10:51.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions