Forum: Ruby on Rails Anatomy of an application in rails

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Ana B. (Guest)
on 2006-04-20 03:44
Ok guys, after doing many tutorial arond the web i realize that im not
going to learn rails well until a made my own app, so i defined what i
want and structured in a way that hope you can understand, maybe we can
help each other and define a good starting base(models and
relationships) that can be helpful for all of us.

Its a little(i think cms), it will consist of basically 4 sections:

-blog
-forum
-user submited content
-user profile

the site will have a blog and a forum beign administrated by an
admin(me) and the registered user can post in the forum, send news,
update his profile and add friends to his network, there are some
guidelines, i have done an image that hope explain a little better this:

http://img155.imageshack.us/my.php?image=anatomy6na.gif

so, there are two things on wich id be glad if someone could give me
some references:

1- user role auth
2- relations between friends(each user can have many friends)

i think its too much for now, any help or advices will be very
apreciated :)

Ana.
David M. (Guest)
on 2006-04-20 04:05
(Received via mailing list)
The easiest, if not cheapest, approach would be to buy the Rails
Cookbook:
- User Role Authentication is covered in recipes 31 and 32:
"Authentication" and "Role Based Authorization"
- Relations between friends is covered in recipe 18 "Self Referential
Many to Many Relationships".

The detail in these recipes should be enough to cover your requirements.

Regards

Dave M.
This topic is locked and can not be replied to.