Download - Ruby on Rails for media
![Page 1: Ruby on Rails for media](https://reader033.vdocument.in/reader033/viewer/2022042714/54bd18f24a7959ff308b4688/html5/thumbnails/1.jpg)
Werner RamaekersVRT Medialab
1
![Page 2: Ruby on Rails for media](https://reader033.vdocument.in/reader033/viewer/2022042714/54bd18f24a7959ff308b4688/html5/thumbnails/2.jpg)
Wired - April 20062
![Page 3: Ruby on Rails for media](https://reader033.vdocument.in/reader033/viewer/2022042714/54bd18f24a7959ff308b4688/html5/thumbnails/3.jpg)
“Ruby on RailsTM is an open-source web framework that’s
optimized for programmer happiness and sustainable
productivity.”
3
3
![Page 4: Ruby on Rails for media](https://reader033.vdocument.in/reader033/viewer/2022042714/54bd18f24a7959ff308b4688/html5/thumbnails/4.jpg)
Convention
Configuration
4
![Page 5: Ruby on Rails for media](https://reader033.vdocument.in/reader033/viewer/2022042714/54bd18f24a7959ff308b4688/html5/thumbnails/5.jpg)
5
![Page 6: Ruby on Rails for media](https://reader033.vdocument.in/reader033/viewer/2022042714/54bd18f24a7959ff308b4688/html5/thumbnails/6.jpg)
6
![Page 7: Ruby on Rails for media](https://reader033.vdocument.in/reader033/viewer/2022042714/54bd18f24a7959ff308b4688/html5/thumbnails/7.jpg)
7
![Page 8: Ruby on Rails for media](https://reader033.vdocument.in/reader033/viewer/2022042714/54bd18f24a7959ff308b4688/html5/thumbnails/8.jpg)
class Post < ActiveRecord::Basebelongs_to :webloghas_many :commentshas_one :author, :class => “Person”
end
8
![Page 9: Ruby on Rails for media](https://reader033.vdocument.in/reader033/viewer/2022042714/54bd18f24a7959ff308b4688/html5/thumbnails/9.jpg)
class WeblogController < ActionControllerdef show
@post = Post.find(params[:id])end
end
9
![Page 10: Ruby on Rails for media](https://reader033.vdocument.in/reader033/viewer/2022042714/54bd18f24a7959ff308b4688/html5/thumbnails/10.jpg)
Create Read Update Delete
REpresentational State Transfert
10
![Page 11: Ruby on Rails for media](https://reader033.vdocument.in/reader033/viewer/2022042714/54bd18f24a7959ff308b4688/html5/thumbnails/11.jpg)
SELECT INSERT UPDATE DELETE
find create update destroy
GET POST PUT DELETE
SQL
ruby
HTTP
11
![Page 12: Ruby on Rails for media](https://reader033.vdocument.in/reader033/viewer/2022042714/54bd18f24a7959ff308b4688/html5/thumbnails/12.jpg)
class PeopleController < ActionController# POST /peopledef create() end
# GET /people/1def show() end
# PUT /people/1def update() end
# DELETE /people/1def destroy() end
end
12
![Page 13: Ruby on Rails for media](https://reader033.vdocument.in/reader033/viewer/2022042714/54bd18f24a7959ff308b4688/html5/thumbnails/13.jpg)
Demo
13
![Page 14: Ruby on Rails for media](https://reader033.vdocument.in/reader033/viewer/2022042714/54bd18f24a7959ff308b4688/html5/thumbnails/14.jpg)
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
![Page 15: Ruby on Rails for media](https://reader033.vdocument.in/reader033/viewer/2022042714/54bd18f24a7959ff308b4688/html5/thumbnails/15.jpg)
15