Download presentation
Presentation is loading. Please wait.
2
Pengenalan Framework Ruby On Rails Menggunakan Netbeans 6.1
Image by ecstaticist
3
Agi Putra Kharisma http://unwrittencode.blogspot.com
4
? ? On
5
Ruby is designed to make programmers happy
Yukihiro Matsumoto (Matz) – Ruby Creator Object Oriented Everything Is An Object (except code block) Dynamic Language Classes Are Always Open ......
6
10.times {puts 'Saya tidak akan mengulanginya lagi'}
Photo by oskay puts 'Hello World' 10.times {puts 'Saya tidak akan mengulanginya lagi'} nilai.lulus unless nilai.include? “E”
7
Class Method class Mahasiswa def kuliah #... end def isi_krs
10
A bunch of stuff that makes web developers happy!
Photo by Roo Reynolds David Heinemeier Hansson (DHH) – Rails Creator An integrated stack of web-application frameworks. An open-source web framework for developing database-backed web applications. A Domain Specific Language (DSL) for developing database-backed web application
11
Convention Over Configuration
12
Don't Repeat Yourself (DRY)
13
Model View Controller (MVC)
14
MVC WEB BROWSER Database MODEL CONTROLLER VIEW route.rb ... def index
UsersController index.html.erb ... def index @user = User.find(:all) respond_to do |format| format.html format.xml end <html> ... <h1>title</h1> <p>body</p> </html>
15
ActiveRecord posts Object Relational Mapper
class Post < ActiveRecord::Base end SELECT * FROM posts WHERE id = 1; @post = Post.find_by_id(1)
18
Demo Membuat aplikasi CRUD sederhana Create Read Update Delete
19
Pertanyaan?
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.