Forum: Ruby on Rails Another application design question

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.
59ab8c0bbb0f9d9d052422278c8a83c0?d=identicon&s=25 Dan Ancona (vizda)
on 2006-04-05 03:39
Hi,

I'm working on a pretty typical social networking app. It takes a little
data from the authentication/session objects that I've sort-of got
working, a little data from this table and a little data from that table
to make up the main page. Seems like a pretty common design, not so
different from what yelp or tribe do, although much simpler (for now,
anyway).

What I haven't quite decided yet is how to arrange it all in the code.
It seems like components are the right answer, and that's the direction
I'm looking at, but I'm not sure yet how I should assemble them. Should
I make a "main" view with no model or controller attached? I could
designate one of my views as being the sort of main view, and just add
bits and pieces to that, but that seems ugly.

It seems like all the examples and tutorials out there focus on showing
one particular kind of functionality for one or two tables, so I've
gotten started pretty quickly but have now hit a little speedbump trying
to figure out how to put it all together. If I can reduce out a simple
example of this, and there's interest, I might try to put together a
tutorial, perhaps in the wiki.

Thoughts? Thanks!

Dan
This topic is locked and can not be replied to.