Advantages of Rails Framework

16
Rails advantages and techniques SATHISH KUMAR MARIAPPAN

description

Rails advantages and techniques

Transcript of Advantages of Rails Framework

Page 1: Advantages of Rails Framework

Rails advantages and techniques

SATHISH KUMAR MARIAPPAN

Page 2: Advantages of Rails Framework

Ruby on Rails - it does scale

• Fast, agile development •Framework based on Ruby

Page 3: Advantages of Rails Framework

INNOPPL Why Ruby On Rails?

Page 4: Advantages of Rails Framework

INNOPPLFast Development

Page 5: Advantages of Rails Framework

INNOPPL

• CRUD

• Scaffolding (if you really need to)

• DRY

• AJAX

• acts_as_something

Page 6: Advantages of Rails Framework

INNOPPL Maintainable

Page 7: Advantages of Rails Framework

INNOPPL

• Very readable code

• Implemented documentation system (RDOC)

• Tests makes sure you don’t break anything

Page 8: Advantages of Rails Framework

INNOPPLModel View Controller

Page 9: Advantages of Rails Framework

INNOPPL

Model View Controller

• Interface to the database• Business Logic goes here• For the DataBase Admin

class User < ActiveRecord::Basehas_many :tasks

end

class Task < ActiveRecord::Basebelongs _to :user

end

Page 10: Advantages of Rails Framework

INNOPPL

Model View Controller

• Link between DB (model) and User (view)• HTTP / Sessions / Cookies / Post / Get• For the Developer

class TaskController < ApplicationControllerdef index

@tasks = User.find(session[:user_id]).tasks

endend

Page 11: Advantages of Rails Framework

INNOPPL

Model View Controller

• Web Interface• What the client sees• For the Designer...

<body><% @tasks.each do |task| %>

<div class=’task’><%= task.content %> is <%= task.status

%></div>

<% end %></body>

Page 12: Advantages of Rails Framework

INNOPPL

Model View Controller

• Link between DB (model) and User (view)• HTTP / Sessions / Cookies / Post / Get• For the Developer

class TaskController < ApplicationControllerdef index

@tasks = User.find(session[:user_id]).tasks

endend

Page 13: Advantages of Rails Framework

INNOPPL

Test-Driven Development

• Write tests first

• FAIL

• Implement

• SUCCEED

• Clean Up

• Check-In to Version Management

Page 14: Advantages of Rails Framework

INNOPPL

polymorphism

Rails features

20.minutes.ago1.gigabyte

time_ago_in_words prototype

has_and_belongs_to_many

cache

routes link_to_remote

<%= debug object %>

group_by

find_by_sql

REST

titleizedelegate

Page 15: Advantages of Rails Framework

INNOPPL CONTACT DETAILS

Sathish Kumar Mariappan Innoppl Technologies E-mail : [email protected]

Page 16: Advantages of Rails Framework

INNOPPL Thank You