21
Introduction to RAILS 3

Intro to Rails 3 - Anup Nivargi

Embed Size (px)

DESCRIPTION

A introduction to Rails 3 given by Anup Nivargi at PuneRailsMeetup #3

Citation preview

Page 1: Intro to Rails 3 - Anup Nivargi

Introduction to RAILS 3

Page 2: Intro to Rails 3 - Anup Nivargi

2

About Me

I'm Anup NIVARGIMangospring, Pune

[email protected]@anupnivargi

Page 3: Intro to Rails 3 - Anup Nivargi

3

Rails 3

• Decoupling Components

• Improve Performance

• Allow Integration of Wider Ecosystem

Page 4: Intro to Rails 3 - Anup Nivargi

4

Core

ActiveSupport

ActionPack

ActiveResource ActiveModel

ActiveRecord DataMapper Sequel

Test::Unit Rspec Others

Page 5: Intro to Rails 3 - Anup Nivargi

5

ActionDispatch

ActionController

ActionView

Request

Action

Filters

Match Route

Render Template

Response

Page 6: Intro to Rails 3 - Anup Nivargi

6

Controller

AbstractController::Base

ActionController::Metal

ApplicationController

ActionController::Base

UsersController

Page 7: Intro to Rails 3 - Anup Nivargi

7

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

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

Page 8: Intro to Rails 3 - Anup Nivargi

8

Install Rails 3 beta 2• Prerequisites • Ruby version >= 1.8.7• RubyGems version >= 1.3.6

Page 9: Intro to Rails 3 - Anup Nivargi

9

Rails 3:Generator

Page 10: Intro to Rails 3 - Anup Nivargi

10

Rails 3:Getting Started

Page 11: Intro to Rails 3 - Anup Nivargi

11

Rails 3:Gemfile & Scaffold

Page 12: Intro to Rails 3 - Anup Nivargi

12

Rails 3:Router API

Page 13: Intro to Rails 3 - Anup Nivargi

13

Rails 3:ActiveRelationQuery Generation Based on Relational Algebra

Page 14: Intro to Rails 3 - Anup Nivargi

14

Rails 3:ActiveRelation

Page 15: Intro to Rails 3 - Anup Nivargi

15

Rails 3:XSS

Page 16: Intro to Rails 3 - Anup Nivargi

16

Rails 3:Erb Blocks

Page 17: Intro to Rails 3 - Anup Nivargi

17

Rails 3:UJSCustom data attributes

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

• data-method

• data-remote

• data-confirm

• data-disable-with

Page 18: Intro to Rails 3 - Anup Nivargi

18

Rails 3:UJS

Page 19: Intro to Rails 3 - Anup Nivargi

19

Rails 3:ActionMailer

Page 20: Intro to Rails 3 - Anup Nivargi

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: Intro to Rails 3 - Anup Nivargi

21

ThankYou!