Ruby on Rails for media

1,238 views

Published on

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

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,238
On SlideShare
0
From Embeds
0
Number of Embeds
41
Actions
Shares
0
Downloads
25
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Ruby on Rails for media

  1. 1. Werner Ramaekers VRT Medialab 1
  2. 2. Wired - April 2006 2
  3. 3. “Ruby on Rails is an open- TM source web framework that’s optimized for programmer happiness and sustainable productivity.” 3 3
  4. 4. Convention Configuration 4
  5. 5. 5
  6. 6. 6
  7. 7. 7
  8. 8. class Post < ActiveRecord::Base belongs_to :weblog has_many :comments has_one :author, :class => “Person” end 8
  9. 9. class WeblogController < ActionController def show @post = Post.find(params[:id]) end end 9
  10. 10. Create Read Update Delete REpresentational State Transfert 10
  11. 11. HTTP GET POST PUT DELETE ruby find create update destroy SQL SELECT INSERT UPDATE DELETE 11
  12. 12. 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
  13. 13. Demo 13
  14. 14. 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. 15. 15

×