Ruby Programming Language
Ruby Programming Language
Ruby Programming Language
net/publication/322222154
CITATION READS
1 5,102
1 author:
Ali Tourani
University of Guilan
22 PUBLICATIONS 56 CITATIONS
SEE PROFILE
Some of the authors of this publication are also working on these related projects:
All content following this page was uploaded by Ali Tourani on 03 January 2018.
Communication
with End User
No Data
Validation Check View Model Database
• MVC (Model-View-Controller) Web Architecture:
Browser Controller Interface for View
and Model Parts
Browser Controller
Routing
Controller
DBD::Oracle
DBD: Neo4J
Application
Ruby Script Programming Database Interface Database Description Databases
Interface
Hulu Github Yellow Pages
C:\> cd DevKit
C:\ DevKit > ruby dk.rb init
C:\ DevKit > ruby dk.rb install
Gem install Rails
Gem install MySQL2
with-MySQL-include=“C:\MySQL Server 5.6\lib\
with-MySQL-include=“C:\MySQL Server 5.6\include\
http://www.railsinstaller.org/en
rails new project name
• Let’s Try!
• Creating/Opening a project
• Downloading necessary GEM files
• Starting PUMA Web Server
• Showing Smoke test page
• Controller
• View
• http://localhost:3000/
get access M in MVC
database/view class
record object
• Database Table
• Model Class
• Foreign keys
• Primary keys
subclass the ApplicationRecord class
Map SQL Table to a Model
User (Model)
find all users named David who are Code Artists and
sort by created_at in reverse chronological order
User (Model)
database schema
codes and instructions
share
• https://www.ruby-lang.org/en/
• https://www.railstutorial.org/
• http://guides.rubyonrails.org/