Ruby on Rails for media

50 %
50 %
Information about Ruby on Rails for media

Published on October 5, 2007

Author: wernerramaekers

Source: slideshare.net

Description

Presentation i gave at the Opensource Software seminar at the European Broadcaster Union in october 2007

Werner Ramaekers VRT Medialab 1

Wired - April 2006 2

“Ruby on Rails is an open- TM source web framework that’s optimized for programmer happiness and sustainable productivity.” 3 3

Convention Configuration 4

5

6

7

class Post < ActiveRecord::Base belongs_to :weblog has_many :comments has_one :author, :class => “Person” end 8

class WeblogController < ActionController def show @post = Post.find(params[:id]) end end 9

Create Read Update Delete REpresentational State Transfert 10

HTTP GET POST PUT DELETE ruby find create update destroy SQL SELECT INSERT UPDATE DELETE 11

class PeopleController < ActionController # POST /people def create() end # GET /people/1 def show() end # PUT /people/1 def update() end # DELETE /people/1 def 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

Add a comment

Related presentations