Introduction to Rails 3

21
Introduction to RAILS 3

description

Introduction to Rails 3, presented in Pune Rails Meetup 3

Transcript of Introduction to Rails 3

Page 1: Introduction to Rails 3

Introduction to RAILS 3

Page 2: Introduction to Rails 3

2

About Me

I'm Anup NIVARGI

Mangospring, Pune

[email protected]

@anupnivargi

Page 3: Introduction to Rails 3

3

Rails 3

• Decoupling Components

• Improve Performance

• Allow Integration of Wider Ecosystem

Page 4: Introduction to Rails 3

4

Core

ActiveSupport

ActionPack

ActiveResource ActiveModel

ActiveRecord DataMapper Sequel

Test::Unit Rspec Others

Page 5: Introduction to Rails 3

5

ActionDispatch

ActionController

ActionView

Request

Action

Filters

Match Route

Render Template

Response

Page 6: Introduction to Rails 3

6

Controller

AbstractController::Base

ActionController::Metal

ApplicationController

ActionController::Base

UsersController

Page 7: Introduction to Rails 3

7

AttributeMethods, Callbacks, Conversion, Naming, Serialization, Translation, Validations etc..

ActiveModel <http://github.com/rails/rails/blob/master/activemodel/README>

Page 8: Introduction to Rails 3

8

Install Rails 3 beta 2

• Prerequisites • Ruby version >= 1.8.7

• RubyGems version >= 1.3.6

Page 9: Introduction to Rails 3

9

Rails 3:Generator

Page 10: Introduction to Rails 3

10

Rails 3:Getting Started

Page 11: Introduction to Rails 3

11

Rails 3:Gemfile & Scaffold

Page 12: Introduction to Rails 3

12

Rails 3:Router API

Page 13: Introduction to Rails 3

13

Rails 3:ActiveRelationQuery Generation Based on Relational Algebra

Page 14: Introduction to Rails 3

14

Rails 3:ActiveRelation

Page 15: Introduction to Rails 3

15

Rails 3:XSS

Page 16: Introduction to Rails 3

16

Rails 3:Erb Blocks

Page 17: Introduction to Rails 3

17

Rails 3:UJSCustom data attributes

<http://github.com/rails/jquery-ujs>

• data-method

• data-remote

• data-confirm

• data-disable-with

Page 18: Introduction to Rails 3

18

Rails 3:UJS

Page 19: Introduction to Rails 3

19

Rails 3:ActionMailer

Page 20: Introduction to Rails 3

20

Rails 3:ResourcesThanks to all of them

• http://www.railscasts.com

• Check Plugin compatibility with Rails 3

• http://www.railsplugins.org/

• Sinatra App with Rails

• http://www.lindsaar.net/2010/2/7/rails_3_routing_with_rack

• http://omgbloglol.com/post/344792822/the-path-to-rails-3-introduction

• http://blog.davidchelimsky.net/2010/01/12/rspec-2-and-rails-3/

• Getting Up-to-date with Rails 3 by Yehuda Katz

• http://www.youtube.com/watch?v=uq1sPDHcQY0

• Rack in Rails 3

• http://www.youtube.com/watch?v=EGGjQrgdg1s

• Rails 2 to 3 abridged

• http://www.youtube.com/watch?v=W7uJfVUYx7I

• http://m.onkey.org/2010/1/22/active-record-query-interface

Page 21: Introduction to Rails 3

21

ThankYou!