Ruby on Rails Workshop2

Ruby on Rails Workshop2 - Workshop 2 Model View Controller...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Workshop 2 Model View Controller design approach Topic objectives Describe the history and architecture of the Model View Controller (MVC) approach to Web application design; Revise database techniques with Rails and SQL Describe how to use MVC in the Ruby on Rails development environment Set up a focus group (like a study group for peer learning) to work on the Ruby on Rails workshops via Interact tools Topic readings Various websites as listed. Discussion The Model View Controller approach has been revamped for GUI building and Web development frameworks using a variety of tools like Java Swing, .NET, to Adobe Flash, ZOPE, TurboGears. Django (Python) uses a variant as Model–Template-View. The MVC paradigm is a way of breaking an application, or its interface, into three parts or class definitions: the model, the view, and the controller. The separation into parts allows multiple views and controllers to interface with the same model. According to the MVC wiki pages beginning at , a simplified definition of MVC suggests that the model is the data, the view is the window on the screen, and the event-driven controller is the glue or code that binds the data to the interface. The diagram below from eNode Inc (2002) shows this pattern: Source: eNode Inc (2002) Consider Rails as a Ruby-based framework for rapid development of Web applications
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
by using the MVC pattern. This can be seen when you begin a project with Rails as folders are set up for your model, views and controllers. The MVC paradigm is a way of thinking about your application. MVC was originally developed with Smalltalk in the early 1980s to help the design of
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 4

Ruby on Rails Workshop2 - Workshop 2 Model View Controller...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online