Introduction to Rails 3

Post on 10-May-2015

2.863 views 0 download

Tags:

description

Introduction to Rails 3, presented in Pune Rails Meetup 3

Transcript of Introduction to Rails 3

Introduction to RAILS 3

2

About Me

I'm Anup NIVARGI

Mangospring, Pune

anupnivargi@gmail.com

@anupnivargi

3

Rails 3

• Decoupling Components

• Improve Performance

• Allow Integration of Wider Ecosystem

4

Core

ActiveSupport

ActionPack

ActiveResource ActiveModel

ActiveRecord DataMapper Sequel

Test::Unit Rspec Others

5

ActionDispatch

ActionController

ActionView

Request

Action

Filters

Match Route

Render Template

Response

6

Controller

AbstractController::Base

ActionController::Metal

ApplicationController

ActionController::Base

UsersController

7

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

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

8

Install Rails 3 beta 2

• Prerequisites • Ruby version >= 1.8.7

• RubyGems version >= 1.3.6

9

Rails 3:Generator

10

Rails 3:Getting Started

11

Rails 3:Gemfile & Scaffold

12

Rails 3:Router API

13

Rails 3:ActiveRelationQuery Generation Based on Relational Algebra

14

Rails 3:ActiveRelation

15

Rails 3:XSS

16

Rails 3:Erb Blocks

17

Rails 3:UJSCustom data attributes

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

• data-method

• data-remote

• data-confirm

• data-disable-with

18

Rails 3:UJS

19

Rails 3:ActionMailer

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

21

ThankYou!