Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
What's New in Rails 3 for Refresh Miami
1. What’s New in Rails 3
Refresh Miami, September 16, 2010
2. Who am I?
Hello, I’m Bryce.
I like the Ruby programming language.
I make web applications with Ruby on
Rails.
I tweet as @bonzoesc
3. Is Rails for you?
Do you develop web applications?
Do you design computer software?
Do you want to run a business online?
4. What is Rails?
Ruby on Rails® is an open-source web
framework that’s optimized for
programmer happiness and sustainable
productivity. It lets you write beautiful
code by favoring convention over
con guration.
- http://rubyonrails.org/
5. What is Rails?
Rails is a way to build
web applications quickly
and be able to maintain
them in the future.
6. What is Rails?
Twitter Scribd
Hulu Less Accounting
Basecamp Shopify
Groupon Get Satisfaction
Lighthouse Urban Dictionary
Github Kongregate
25. Responder
class EpisodesController < ApplicationController
respond_to :html, :xml, :json
def index
@episodes = Episode.all
respond_with @episodes
end
end
Merb started as a smaller, simpler Rails.
Merb didn&#x2019;t force you to use some of the libraries that Rails 1 & 2 did.
In December 2008, the Rails and Merb teams announced they were merging and collaborating on Rails 3.
ActiveRecord: Arel, ActiveModel
ActionController: CSRF protection, ActionController::Responder
ActionView: XSS Protection, Unobtrusive JavaScript
Railties: No more scripts/*
Easily add XML or JSON support to a resource.
Add pagination support for HTML views.
For example, visiting http://malicious.site/ could post a message as you on Twitter.
Unless you go through the work to disable this, you won&#x2019;t have to worry
On a page with 100 AJAX buttons, this could double the size of the page load.
The client downloads a driver once per site, instead of on every page load.
The most &#x201C;gotcha&#x201D; of the rails changes.
When upgrading Rails, these scripts would have to be added to or replaced.
When new versions are released, you won&#x2019;t have to update any scripts.