presentationrubyonrails 1221891563546619-8
TRANSCRIPT
![Page 1: Presentationrubyonrails 1221891563546619-8](https://reader038.vdocument.in/reader038/viewer/2022110119/555a4477d8b42a83368b52a0/html5/thumbnails/1.jpg)
1Ruby on Rails04/12/23
Building Web Applications Is Fun Again!
![Page 2: Presentationrubyonrails 1221891563546619-8](https://reader038.vdocument.in/reader038/viewer/2022110119/555a4477d8b42a83368b52a0/html5/thumbnails/2.jpg)
A collection of good libraries, less works but achieve better results and faster.
There are lots of nice tools, classes and methods to makedevelopment easier.
2Ruby on Rails04/12/23
![Page 3: Presentationrubyonrails 1221891563546619-8](https://reader038.vdocument.in/reader038/viewer/2022110119/555a4477d8b42a83368b52a0/html5/thumbnails/3.jpg)
Ruby is:• A High Level Programming Language• Originated in Japan and Rapidly Gaining Mindshare in US and Europe.
3Ruby on Rails04/12/23
![Page 4: Presentationrubyonrails 1221891563546619-8](https://reader038.vdocument.in/reader038/viewer/2022110119/555a4477d8b42a83368b52a0/html5/thumbnails/4.jpg)
Why Ruby ?• Easy to learn• Open source• Very easy to extend• Truly Object-Oriented• Less Coding with fewer bugs
4Ruby on Rails04/12/23
![Page 5: Presentationrubyonrails 1221891563546619-8](https://reader038.vdocument.in/reader038/viewer/2022110119/555a4477d8b42a83368b52a0/html5/thumbnails/5.jpg)
Rails is• A web-application framework written in Ruby by David Heinemeier Hansson.• Model-View-Controller
5Ruby on Rails04/12/23
![Page 6: Presentationrubyonrails 1221891563546619-8](https://reader038.vdocument.in/reader038/viewer/2022110119/555a4477d8b42a83368b52a0/html5/thumbnails/6.jpg)
Model (ActiveRecord ) :Maintains the relationship between Object and Database and handles validation, association, transactions, and more.
6Ruby on Rails04/12/23
![Page 7: Presentationrubyonrails 1221891563546619-8](https://reader038.vdocument.in/reader038/viewer/2022110119/555a4477d8b42a83368b52a0/html5/thumbnails/7.jpg)
View ( ActionView )A presentation of data in a particular format, triggered by a controller's decision to present the data.
7Ruby on Rails04/12/23
![Page 8: Presentationrubyonrails 1221891563546619-8](https://reader038.vdocument.in/reader038/viewer/2022110119/555a4477d8b42a83368b52a0/html5/thumbnails/8.jpg)
Controller ( ActionController ): is the logical center of your application. It coordinates the interaction between the user, the views, and the model.
8Ruby on Rails04/12/23
![Page 9: Presentationrubyonrails 1221891563546619-8](https://reader038.vdocument.in/reader038/viewer/2022110119/555a4477d8b42a83368b52a0/html5/thumbnails/9.jpg)
A Pictorial Diagram of Ruby on Rails Framework:
9Ruby on Rails04/12/23
![Page 10: Presentationrubyonrails 1221891563546619-8](https://reader038.vdocument.in/reader038/viewer/2022110119/555a4477d8b42a83368b52a0/html5/thumbnails/10.jpg)
This can be created by using sample helper command C:\InstantRails\rails_apps>rails demoThen you will find a directory structure as follow:
10Ruby on Rails04/12/23
![Page 11: Presentationrubyonrails 1221891563546619-8](https://reader038.vdocument.in/reader038/viewer/2022110119/555a4477d8b42a83368b52a0/html5/thumbnails/11.jpg)
demo/ ..../app ......../controller ......../helpers ......../models ......../views ............../layouts ..../components ..../config ..../db..../doc ..../lib
11Ruby on Rails04/12/23
![Page 12: Presentationrubyonrails 1221891563546619-8](https://reader038.vdocument.in/reader038/viewer/2022110119/555a4477d8b42a83368b52a0/html5/thumbnails/12.jpg)
12Ruby on Rails04/12/23
Go to http://rubyforge.org/projects/instantrails/
1. Instant Rails 2.02. Instant Rails 1.73. Instant Rails 1.54. Instant Rails 1.45. Instant Rails 1.3a
![Page 13: Presentationrubyonrails 1221891563546619-8](https://reader038.vdocument.in/reader038/viewer/2022110119/555a4477d8b42a83368b52a0/html5/thumbnails/13.jpg)
13Ruby on Rails04/12/23
1. Unzip Instant Rails on any hard drive2. Start server Apache and MySQL
![Page 14: Presentationrubyonrails 1221891563546619-8](https://reader038.vdocument.in/reader038/viewer/2022110119/555a4477d8b42a83368b52a0/html5/thumbnails/14.jpg)
14Ruby on Rails04/12/23
![Page 15: Presentationrubyonrails 1221891563546619-8](https://reader038.vdocument.in/reader038/viewer/2022110119/555a4477d8b42a83368b52a0/html5/thumbnails/15.jpg)
15Ruby on Rails04/12/23
Go to command prompt by using helper command as follow:C:\InstantRails>use_ruby
![Page 16: Presentationrubyonrails 1221891563546619-8](https://reader038.vdocument.in/reader038/viewer/2022110119/555a4477d8b42a83368b52a0/html5/thumbnails/16.jpg)
16Ruby on Rails04/12/23
Rails will try to use Mongrel and lighttpd if they are installed, otherwise Rails will use WEBBrick, the webserver that ships with ruby.
![Page 17: Presentationrubyonrails 1221891563546619-8](https://reader038.vdocument.in/reader038/viewer/2022110119/555a4477d8b42a83368b52a0/html5/thumbnails/17.jpg)
17Ruby on Rails04/12/23
Windows users are encouraged to Start with Mongrel because it is a Ruby-based webserver that is suitable for development and deployment of Rails applications.
![Page 18: Presentationrubyonrails 1221891563546619-8](https://reader038.vdocument.in/reader038/viewer/2022110119/555a4477d8b42a83368b52a0/html5/thumbnails/18.jpg)
18Ruby on Rails04/12/23
• Mysql• Oracle• Postgre Sql• SqlLite• And more…
![Page 19: Presentationrubyonrails 1221891563546619-8](https://reader038.vdocument.in/reader038/viewer/2022110119/555a4477d8b42a83368b52a0/html5/thumbnails/19.jpg)
19Ruby on Rails04/12/23