SlideShare a Scribd company logo
Ruby on Rails
Development
What is Ruby on
Rails ?
● Ruby on Rails is a web application framework written in
Ruby, a dynamic programming language.
● Ruby on Rails uses the MVC (Model-View-Controller)
architecture pattern to organize application programming.
● Ruby on Rails is a web application framework written in
Ruby, a dynamic programming language.
● Ruby on Rails uses the MVC (Model-View-Controller)
architecture pattern to organize application programming.
Ruby on Rails
Features
Rails is packed with features that make you more
productive, with many of the following features building on
one other.
● Meta programming:
● Active Record
● Convention over configuration
● Scaffolding
● Built-in testing
● Three environments
Rails is packed with features that make you more
productive, with many of the following features building on
one other.
● Meta programming:
● Active Record
● Convention over configuration
● Scaffolding
● Built-in testing
● Three environments
Sample Ruby
Code
# Output “Name”
puts “Bhaskar”
# Output “Name” in upprecase
puts “Bhaskar”.upcase
# Output “Name” 10 times
10.times do puts
“Bhaskar”.upcase
end
Sample Ruby Code:
Class
Class Employee: defining three attributes for a
Employee; name, age, position
class Employee # must be capitalized
attr_accessor :name, :age, :position
# The initialize method is the constructor
def initialize(name, age, position)
@name = name
@age = type
@position = color
end
New
Employee
Creating an instance of the Employee class:
a = Employee.new(“JAY", “23", “Test Engineer")
b = Employee.new(“SAM", “24", “Test Engineer")
Meth
od
To be able to describe employees, we add a
method to the employee class:
def describe
@name + " is of " + @age + " years"
+" working as "
+ @position+ ".n"
end
Calling
Method
To get the description of Employee, we can call
Employee with the describe method attached :
emp= a.describe
puts emp
Or:
puts a.describe
Rails implements the model-
viewcontroller
(MVC) architecture.
Model View Contoller
(MVC)
● The MVC design pattern separates the
component parts of an application
● MVC pattern allows rapid change and evolution
of the user interface and controller separate
from the data model
Mod
el
Contains the data of the application
● Transient
● Stored (eg Database)
Enforces "business" rules of the application
● Attributes
● Work flow
Vie
w
● Provides the user interface
● Dynamic content rendered through templates
Three major types
● Ruby code in erb (embedded ruby) templates
● xml.builder templates
● rjs templates (for javascript, and thus ajax)
Controll
er
● Perform the bulk of the heavy lifting
● Handles web requests
● Maintains session state
● Performs caching
● Manages helper modules
Creating a Simple
Application
Requirements
● Ruby
● RubyGems
● Rails
● SQlite, PostGres or MySQL
Creating a Simple
Application
Requirements
● Ruby
● RubyGems
● Rails
● SQlite, PostGres or MySQL
Creating a Simple
Application
Convention over configuration
● Most Web development frameworks for .NET or Java
forces to write pages of configuration code, instead Rails
doesn't need much configuration.The total configuration
code can be reduced by a factor of five or more over
similar Java frameworks just by following common
conventions.
● Naming your data model class with the same name as
the corresponding database table
● ‘id’ as the primary key name.

More Related Content

PDF
Next.js with drupal, the good parts
PPT
Ruby on Rails industry trends
PDF
Active Admin
PDF
Rails course day 2
PDF
Introducing Ruby/MVC/RoR
PPTX
Introduction to SQLStreamBuilder: Rich Streaming SQL Interface for Creating a...
PDF
Active Admin: Create Your Admin Interface the Easy Way
ODP
Launching Services in Amazon Web Services
Next.js with drupal, the good parts
Ruby on Rails industry trends
Active Admin
Rails course day 2
Introducing Ruby/MVC/RoR
Introduction to SQLStreamBuilder: Rich Streaming SQL Interface for Creating a...
Active Admin: Create Your Admin Interface the Easy Way
Launching Services in Amazon Web Services

What's hot (20)

PDF
How angularjs saves rails
PPTX
Non-Microsoft Technologies Which Microsoft is Embracing
PDF
AngularJS meets Rails
DOCX
Rails Concept
PDF
Apache Gobblin
PPTX
4. introduction to Asp.Net MVC - Part II
PPTX
Unpacking .NET Core | EastBanc Technologies
PPT
Laravel & Composer presentation - extended
PPTX
Ruby on Rails : First Mile
PPT
Ruby On Rails - webdevelopment wordt weer leuk!
PDF
Rails engines
PDF
Camunda GraphQL Extension (09/2017 Berlin)
PPTX
Дмитрий Тежельников «Разработка вэб-решений с использованием Asp.NET.Core и ...
PDF
React.js for Rails Developers
PPTX
AngularJS
PDF
CraftCamp for Students - Introduction to AngularJS
PDF
Project Fedena and Why Ruby on Rails - ArvindArvind G S
PDF
Clovaを支える技術 機械学習配信基盤のご紹介
PDF
Angular basicschat
PDF
MAppMechanic CodeLabs - PolymerJS Advanced Topics for Custom Elements
How angularjs saves rails
Non-Microsoft Technologies Which Microsoft is Embracing
AngularJS meets Rails
Rails Concept
Apache Gobblin
4. introduction to Asp.Net MVC - Part II
Unpacking .NET Core | EastBanc Technologies
Laravel & Composer presentation - extended
Ruby on Rails : First Mile
Ruby On Rails - webdevelopment wordt weer leuk!
Rails engines
Camunda GraphQL Extension (09/2017 Berlin)
Дмитрий Тежельников «Разработка вэб-решений с использованием Asp.NET.Core и ...
React.js for Rails Developers
AngularJS
CraftCamp for Students - Introduction to AngularJS
Project Fedena and Why Ruby on Rails - ArvindArvind G S
Clovaを支える技術 機械学習配信基盤のご紹介
Angular basicschat
MAppMechanic CodeLabs - PolymerJS Advanced Topics for Custom Elements
Ad

Similar to ruby on rails development company in india (20)

PPT
Ruby On Rails
PPT
Ruby on rails
PDF
Ruby on Rails Presentation
KEY
Ruby On Rails Overview
PDF
Lecture #5 Introduction to rails
PDF
Introduction to Rails by Evgeniy Hinyuk
PDF
Ruby Rails Web Development
PPT
Ruby On Rails Seminar Basis Softexpo Feb2010
PPT
MVC Demystified: Essence of Ruby on Rails
PPTX
Ruby on rails for beginers
PPTX
Why Ruby?
PDF
Story for a Ruby on Rails Single Engineer
PDF
Introduction to Ruby on Rails.pdf
PPT
Ruby On Rails
PPTX
Ruby On Rails For .Net Developers
PDF
Ruby On Rails
PPT
Intro to Ruby on Rails
PPTX
Ruby on rails
PPT
Ruby On Rails Tutorial
PPTX
Intro to Rails and MVC
Ruby On Rails
Ruby on rails
Ruby on Rails Presentation
Ruby On Rails Overview
Lecture #5 Introduction to rails
Introduction to Rails by Evgeniy Hinyuk
Ruby Rails Web Development
Ruby On Rails Seminar Basis Softexpo Feb2010
MVC Demystified: Essence of Ruby on Rails
Ruby on rails for beginers
Why Ruby?
Story for a Ruby on Rails Single Engineer
Introduction to Ruby on Rails.pdf
Ruby On Rails
Ruby On Rails For .Net Developers
Ruby On Rails
Intro to Ruby on Rails
Ruby on rails
Ruby On Rails Tutorial
Intro to Rails and MVC
Ad

More from SAG IPL (8)

PDF
12 Robust Strategies To Make NFT Games Viral.pdf
PDF
Checkout The ICO Development Checklist
PDF
Avoid SEO Fifteen Common Mistake
PDF
All You Need To Know About ICO (Infographic)
ODP
100 Interesting Facts - No One Will Tell You About That
ODP
The Ultimate Guide to Effective App Store Optimization
ODP
Freelancers vs Web Development Company - SAG IPL
ODP
Wordpress Statistics For 2017
12 Robust Strategies To Make NFT Games Viral.pdf
Checkout The ICO Development Checklist
Avoid SEO Fifteen Common Mistake
All You Need To Know About ICO (Infographic)
100 Interesting Facts - No One Will Tell You About That
The Ultimate Guide to Effective App Store Optimization
Freelancers vs Web Development Company - SAG IPL
Wordpress Statistics For 2017

Recently uploaded (20)

PDF
kom-180-proposal-for-a-directive-amending-directive-2014-45-eu-and-directive-...
DOCX
Business Management - unit 1 and 2
PDF
20250805_A. Stotz All Weather Strategy - Performance review July 2025.pdf
PPTX
Principles of Marketing, Industrial, Consumers,
PPTX
CkgxkgxydkydyldylydlydyldlyddolydyoyyU2.pptx
PDF
BsN 7th Sem Course GridNNNNNNNN CCN.pdf
PDF
Laughter Yoga Basic Learning Workshop Manual
PPTX
HR Introduction Slide (1).pptx on hr intro
PDF
DOC-20250806-WA0002._20250806_112011_0000.pdf
PDF
Roadmap Map-digital Banking feature MB,IB,AB
PDF
Nidhal Samdaie CV - International Business Consultant
PPTX
Belch_12e_PPT_Ch18_Accessible_university.pptx
PPT
Chapter four Project-Preparation material
PDF
MSPs in 10 Words - Created by US MSP Network
PPTX
Amazon (Business Studies) management studies
PDF
COST SHEET- Tender and Quotation unit 2.pdf
PDF
How to Get Business Funding for Small Business Fast
PDF
Elevate Cleaning Efficiency Using Tallfly Hair Remover Roller Factory Expertise
PPTX
The Marketing Journey - Tracey Phillips - Marketing Matters 7-2025.pptx
PDF
Types of control:Qualitative vs Quantitative
kom-180-proposal-for-a-directive-amending-directive-2014-45-eu-and-directive-...
Business Management - unit 1 and 2
20250805_A. Stotz All Weather Strategy - Performance review July 2025.pdf
Principles of Marketing, Industrial, Consumers,
CkgxkgxydkydyldylydlydyldlyddolydyoyyU2.pptx
BsN 7th Sem Course GridNNNNNNNN CCN.pdf
Laughter Yoga Basic Learning Workshop Manual
HR Introduction Slide (1).pptx on hr intro
DOC-20250806-WA0002._20250806_112011_0000.pdf
Roadmap Map-digital Banking feature MB,IB,AB
Nidhal Samdaie CV - International Business Consultant
Belch_12e_PPT_Ch18_Accessible_university.pptx
Chapter four Project-Preparation material
MSPs in 10 Words - Created by US MSP Network
Amazon (Business Studies) management studies
COST SHEET- Tender and Quotation unit 2.pdf
How to Get Business Funding for Small Business Fast
Elevate Cleaning Efficiency Using Tallfly Hair Remover Roller Factory Expertise
The Marketing Journey - Tracey Phillips - Marketing Matters 7-2025.pptx
Types of control:Qualitative vs Quantitative

ruby on rails development company in india

  • 2. What is Ruby on Rails ? ● Ruby on Rails is a web application framework written in Ruby, a dynamic programming language. ● Ruby on Rails uses the MVC (Model-View-Controller) architecture pattern to organize application programming. ● Ruby on Rails is a web application framework written in Ruby, a dynamic programming language. ● Ruby on Rails uses the MVC (Model-View-Controller) architecture pattern to organize application programming.
  • 3. Ruby on Rails Features Rails is packed with features that make you more productive, with many of the following features building on one other. ● Meta programming: ● Active Record ● Convention over configuration ● Scaffolding ● Built-in testing ● Three environments Rails is packed with features that make you more productive, with many of the following features building on one other. ● Meta programming: ● Active Record ● Convention over configuration ● Scaffolding ● Built-in testing ● Three environments
  • 4. Sample Ruby Code # Output “Name” puts “Bhaskar” # Output “Name” in upprecase puts “Bhaskar”.upcase # Output “Name” 10 times 10.times do puts “Bhaskar”.upcase end
  • 5. Sample Ruby Code: Class Class Employee: defining three attributes for a Employee; name, age, position class Employee # must be capitalized attr_accessor :name, :age, :position # The initialize method is the constructor def initialize(name, age, position) @name = name @age = type @position = color end
  • 6. New Employee Creating an instance of the Employee class: a = Employee.new(“JAY", “23", “Test Engineer") b = Employee.new(“SAM", “24", “Test Engineer")
  • 7. Meth od To be able to describe employees, we add a method to the employee class: def describe @name + " is of " + @age + " years" +" working as " + @position+ ".n" end
  • 8. Calling Method To get the description of Employee, we can call Employee with the describe method attached : emp= a.describe puts emp Or: puts a.describe
  • 9. Rails implements the model- viewcontroller (MVC) architecture.
  • 10. Model View Contoller (MVC) ● The MVC design pattern separates the component parts of an application ● MVC pattern allows rapid change and evolution of the user interface and controller separate from the data model
  • 11. Mod el Contains the data of the application ● Transient ● Stored (eg Database) Enforces "business" rules of the application ● Attributes ● Work flow
  • 12. Vie w ● Provides the user interface ● Dynamic content rendered through templates Three major types ● Ruby code in erb (embedded ruby) templates ● xml.builder templates ● rjs templates (for javascript, and thus ajax)
  • 13. Controll er ● Perform the bulk of the heavy lifting ● Handles web requests ● Maintains session state ● Performs caching ● Manages helper modules
  • 14. Creating a Simple Application Requirements ● Ruby ● RubyGems ● Rails ● SQlite, PostGres or MySQL
  • 15. Creating a Simple Application Requirements ● Ruby ● RubyGems ● Rails ● SQlite, PostGres or MySQL
  • 16. Creating a Simple Application Convention over configuration ● Most Web development frameworks for .NET or Java forces to write pages of configuration code, instead Rails doesn't need much configuration.The total configuration code can be reduced by a factor of five or more over similar Java frameworks just by following common conventions. ● Naming your data model class with the same name as the corresponding database table ● ‘id’ as the primary key name.