1. Setup a focus group to work on the Ruby on Rails workshop via interact tools as a class.
There is no doubt that in order to communicate between students and lecturer Professor, Peter Dalmaris, have made google group webpage to focus the our studying. It is generally provide that students are able to interact with each other during subject schedule. ITC594-382 is based on GoogleGroups that is powered by Google. Using this group webpage, every student will discuss on e-business study and any problems. The group page is the following:
http://groups.google.com/group/itc594-382

Convention over configuration means the programmer needs to identify configuration that is unconventional. The Programming is a making decision to make such as how to organize your files, what conventions to adopt, and how to treat database access. If user decided to use a database abstraction layer, user will need to write it. Users need to do all this before user go to the business of modelling. However, Ruby on Rails lets them get started right away by encompassing a set of intelligent decisions about how your program have to work, alleviating the amount of low level decisions (Fisher, 2008). Hence, users could focus on any problems
Reference
Fisher, T. (2008). Ruby on Rails Bible. John Wiley and Sons Press
3 Further work on understanding MVC:
a. See the wiki at http://wiki.rubyonrails.org/rails/pages/UnderstandingMVC
b. Do the MVC tutorial at http://wiki.squeak.org/squeak/1767
a.
The topic is no longer exists.
b.
The tutorial summarizes the Model-View-Controller pattern, such as the developer of MVC model and MVC design pattern. Smalltalk-80 that is a classic standard ClassBuilder language had overlapping Windows and MAC. MVC has been accepted a better way to construct software applications. MVC is a better way, because it makes easier to understand, develop, and maintain an application(Smalltalk-80, 2006).
References
Smalltalk-80. (2006). Retrieved March 10, 2009, from http://wiki.squeak.org/squeak/373
4 Got a spare hour or so? I recommend the UC Berkeley RAD lab’s Ruby on Rails Short course at http://youtube.com/watch?v=LADHwoN2LMM
This Youtube video explain the followings;
-Web applications
- MVC design pattern
-SQL
-Hello World
-Rails
-AJAX
-Configure
-Deploy
First of all, there is a review of web applications, such as how it works, how it interacts with others, and how HTTP and HTML works. After that, he tells about SQL table structure and relation among web application and data base. And he talks Rails through basic starting “Hello World”, and guide the MVC design pattern. And then, he explains the term of "Convention over Configuration", and illustrates the example again to clarify the new terms. At the end, he finalize the speech by explaining Ruby and the properties of Rails framework. Finally, the terms of "Ruby" and "Rails" and programming structure are mentioned. Thus, Strength of the Ruby on Rails understands me as clearly and concisely.
5 Read the Flash article using ActionScript by Colin Moock titled “The Model-View-Controller Design Pattern “at http://www.adobe.com/devnet/flash/articles/mv_controller.html
The Model-View-Controller Design Pattern used with MVC pattern. Basically, we can separate the Model that holds the data of the application, the view that is the visual presentation, and the Controller that is interaction. Therefore, the most important thing is the how model, view and controller. Moreover, it provides the basic services for the Model-View relationship.
The concept of the Model-View-Controller (MVC) design pattern of this article is essentially separates into three distinct classes:
Model: Implements the observer pattern and sends reports to the view
View: Holds a reference to the Model and the Controller
Controller: Holds a reference to the Model and updates via the view
The all of the above knowledge is about basic architecture of MVC. Moreover, this allows developers to work on an application together more efficiently.
Challenge Problems
1) How is Rails structured to follow the MVC pattern?
2) Apply the MVC design approach to our Project: Online Taxi Booking System.
In this part of the workshop, I am going to show you how can a MVC pattern be constructed on Rails framework. So we need to create a sample application to introduce details and online taxi booking system will be a good example for it. On this project, there will be two tables to hold user data and instant rails will be quite enough to complete the requirements.
First of all, we need to construct application file structure based on MVC pattern.
Open a command prompt and go to C:\InstantRails-2.0-win\rails_apps
Command "rails taxi" and you will see that it will create all required file structrure like below
We need to enter the "rails taxi" on command।
And then enter "cd taxi" on command
Create the taxi sqlite3 database using “rake db:create RAILS_ENV='development'” command। After that talk to the cmd command as "rake db:migrate".
Then we can see taxi file on application folder in C ड्राइव
Here, we require to make elements like destination, time, passenger, origin। We enter "ruby script/generate scaffold destination suburb:string no_of_passengers:integer taxi_type:string time_required:time origin_id:integer" into command. After that, we command "rake db:migrate". And input “ruby script/server” to run it and display online taxi booking system on browser.
To start form type “http://localhost:3000/” into address bar
Add “destinations” -http://localhost:3000/destinations। And it will represent from of taxi booking system that we have made before.
A browser display “New destination” ,and we fill up all category
Result
Edit page










No comments:
Post a Comment