On 20 October 2010 10:29, Harmedia <[email protected]> wrote: > Hey, > > For an enterprise project a small section is on 3 tier architecture > and intergrating RoR into it. I have researched RoR and found that as > standard it uses MVC which is a similar architecture except MVC allows > the client to interact directly with the database.
No, he can only interact by going through the Controller and the Model > I was wondering > however, is the "MVC" that I've read about different to the 3 tier > architecture or is it a 3 tier system within a 3 tier system? Sorry if > it sounds a really stupid question. Also from my research I've > detained that the RoR would be most suited to the server level of the > 3 tier architecture, does this sound correct? I think the MVC concept has pretty much superseded 3-tier for web applications. Using http://en.wikipedia.org/wiki/Multitier_architecture as a reference. I would say that approximately the Data tier maps to the database driver (MySQL or whatever). In Rails the Logic tier is further divided into the Model, which handles business logic and the Controller which handles requests from the user and makes data available for the View. The Presentation layer more or less maps to the View. Though possibly it would be better to show the controller riding the dividing line between the presentation layer and the logic tier. No doubt others will have different views. To be honest I don't think it matters much. Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

