summaryrefslogtreecommitdiff
path: root/docs/DesignDocument.md
diff options
context:
space:
mode:
authorAndrewMurrell <amurrel@purdue.edu>2014-02-10 13:04:56 -0500
committerAndrewMurrell <amurrel@purdue.edu>2014-02-10 13:04:56 -0500
commit66912895c53b7c22809935c2158c8ee9f184e793 (patch)
tree34ed4a0a814c31d6d6c8788e8807a7ffa9c96c4d /docs/DesignDocument.md
parent938c833d77f400a29fb7cf32a5d4c681857c5532 (diff)
Worked with Davis on Section 3.
Diffstat (limited to 'docs/DesignDocument.md')
-rw-r--r--docs/DesignDocument.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/DesignDocument.md b/docs/DesignDocument.md
index 9efbca8..4e24c99 100644
--- a/docs/DesignDocument.md
+++ b/docs/DesignDocument.md
@@ -45,17 +45,17 @@ sleek web application which manages tournaments.
2 Non-Functional Requirements
TODO Guntas. Email dunsmore and marco about this, then fill it out.
-3 Design Outlines
+3 Design Outlines
3.1 Design Decisions and Components
-Our system will on the Model 2 design pattern/architecture.
+Project Leaguer is written on the Ruby on Rails platform and will use the Model 2 (MVC) design pattern/architecture. This architecture is comprised of three interacting components: Controllers, Views, and Models.
-Controllers – The controllers will control any logic necessary to obtain the correct content for display. It then places the content in the request and decides which view it will be passed to.
+Controllers – Requests received by the server are processed by a routing subroutine and directed to a controller responsible for handling them. Controllers accept these requests and manage any logic necessary to obtain the correct content for display, retrieving and updating information from the Model as needed. It then creates a new request, places the content from the model in the request (if applicable), decides which view it will be passed to, and passes on the request.
-Models – We will be using a Ruby on Rails model. The Ruby on Rails framework maps to a table in the database and a Ruby file. So a User will usually be difined as user.rb in the app/models directory and this will be linked to the table users in the database.
+Models – In Ruby on Rails, models are usually implemented as an interface to a table in the database and a Ruby file which queries this table and interacts with the other components. For example, a "user" model would be connected to the "user" table and a file "user.rb" in the app/models directory would provide an interface to interact with the "user" controller.
-Views – Views will be the HTML pages for Leaguer, and will display the users desired content inside of the web browser.
+Views – Views will primarily be dynamically generated HTML pages and will display the users desired content inside of the web browser. These may be implemented with inline Ruby scripts and tags within traditional HTML.
Component Interaction