Top Banner
Werner Ramaekers VRT Medialab 1
15

Ruby on Rails for media

Jan 19, 2015

Download

Technology

Presentation i gave at the Opensource Software seminar at the European Broadcaster Union in october 2007
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Ruby on Rails for media

Werner RamaekersVRT Medialab

1

Page 2: Ruby on Rails for media

Wired - April 20062

Page 3: Ruby on Rails for media

“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

Convention

Configuration

4

Page 5: Ruby on Rails for media

5

Page 6: Ruby on Rails for media

6

Page 7: Ruby on Rails for media

7

Page 8: Ruby on Rails for media

class Post < ActiveRecord::Basebelongs_to :webloghas_many :commentshas_one :author, :class => “Person”

end

8

Page 9: Ruby on Rails for media

class WeblogController < ActionControllerdef show

@post = Post.find(params[:id])end

end

9

Page 10: Ruby on Rails for media

Create Read Update Delete

REpresentational State Transfert

10

Page 11: Ruby on Rails for media

SELECT INSERT UPDATE DELETE

find create update destroy

GET POST PUT DELETE

SQL

ruby

HTTP

11

Page 12: Ruby on Rails for media

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

Demo

13

Page 14: Ruby on Rails for media

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

15