50 likes | 333 Views
Ruby on Rails. Easy Web 2.0 . History. Ruby – hard to add in web 2.0 functionality. Done via javascript Ruby on Rails wrapper for prototype and scriptalicious for ruby. Rapid Application Development. Model View Controller (MVC)
E N D
Ruby on Rails Easy Web 2.0
History • Ruby – hard to add in web 2.0 functionality. Done via javascript • Ruby on Rails wrapper for prototype and scriptalicious for ruby
Rapid Application Development • Model View Controller (MVC) • Automagically create database tables, input, output pages for you • Object Oriented Programming • Moving away from linear development into object oriented programming • Rapid Application Development – weblog in 15 minutes!
Making Web 2.0 easier • Ruby – using javascriptSortable.create("list", {onUpdate:function(){newAjax.Updater('list-info', '/hello/reorder', {asynchronous:true, evalScripts:true, onComplete:function(request){newEffect.Highlight("list",{});}, parameters:Sortable.serialize("list") + '&authenticity_token=' + encodeURIComponent('e3babda21c6870c0c702b26ea5d6fc27a9208d6f')})}}) • Rails - provides a wrapper <%= sortable_element 'list',:update => 'list-info', :complete => visual_effect(:highlight, 'list'),:url => "/hello/reorder" %> • Rails - Instant ajaxpost from normal form post <%= link_to_function("Add new Hello World Message",