Werner Ramaekers VRT Medialab 1
Jan 19, 2015
Werner RamaekersVRT Medialab
1
Wired - April 20062
“Ruby on RailsTM is an open-source web framework that’s
optimized for programmer happiness and sustainable
productivity.”
3
3
Convention
Configuration
4
5
6
7
class Post < ActiveRecord::Basebelongs_to :webloghas_many :commentshas_one :author, :class => “Person”
end
8
class WeblogController < ActionControllerdef show
@post = Post.find(params[:id])end
end
9
Create Read Update Delete
REpresentational State Transfert
10
SELECT INSERT UPDATE DELETE
find create update destroy
GET POST PUT DELETE
SQL
ruby
HTTP
11
class PeopleController < ActionController# POST /peopledef create() end
# GET /people/1def show() end
# PUT /people/1def update() end
# DELETE /people/1def destroy() end
end
12
Demo
13
CBS has partnered with sites including AOL, Joost, Sling Media, YouTube, MSNBC and Bebo
Viewership for CBS material subsequently skyrocketed from 24 million in May to 134 million in July 2007
http://www.wired.com/techbiz/media/news/2007/10/nbc_itunes
14
15