Relations with mongoid, what should i use?
I'm using Ruby on Rails 3.1 with mongoid and trying to set up som rather simple relations between posts, comments, users and tags.
I'm very new to mongodb, and no-sql in general so I'm a bit confused.

What I am trying to accomplish is this:
Users, posts and comments should be able to have multiple tags.
Tags should have name, type and a count of how many times it has been used.
I need to be able to get all available tags så that users kan choose from them.
And the other way around, be able to retrieve tags from users, posts and comments.

I've read a lot about it, and still can't seem to figure out which approach I should take. Should I use referencial or embedded relationships?
I've looked at a couple of gems but no-one seems to work as i described above.

Sidenote: I am going to use [Tire][1] for my search-function later on.


  [1]: https://github.com/karmi/tire
Relations with mongoid, what should i use?
===

I'm using Ruby on Rails 3.1 with mongoid and trying to set up som rather simple relations between posts, comments, users and tags.
I'm very new to mongodb, and no-sql in general so I'm a bit confused.

What I am trying to accomplish is this:
Users, posts and comments should be able to have multiple tags.
Tags should have name, type and a count of how many times it has been used.
I need to be able to get all available tags så that users kan choose from them.
And the other way around, be able to retrieve tags from users, posts and comments.

I've read a lot about it, and still can't seem to figure out which approach I should take. Should I use referencial or embedded relationships?
I've looked at a couple of gems but no-one seems to work as i described above.

Sidenote: I am going to use [Tire][1] for my search-function later on.


  [1]: https://github.com/karmi/tire