SlideShare a Scribd company logo
Principles of MVC For rails Developers
View Ruby On Rails Course at: www.edureka.co/ruby-on-rails
For more details please contact us:
US : 1800 275 9730 (toll free)
INDIA : +91 88808 62004
Email Us : webinars@edureka.co
For Queries:
Post on Twitter @edurekaIN: #askEdureka
Post on Facebook /edurekaIN
Slide 2 www.edureka.co/ruby-on-rails
Objectives
At the end of this module, you will be able to understand:
ď‚® Challenges Faced when Designing an Application Without Framework
ď‚® MCV Design Patterns
ď‚® Logic Behind MVC
ď‚® DRY and Convention Over Configuration
ď‚® MVC Benefits
ď‚® Demo on MVC in RAILS
Slide 3 www.edureka.co/ruby-on-rails
Challenges Faced when Designing an Application without a Framework
ď‚® Complexity in direct coding ď‚® Everything must be tested, which is difficult
ď‚® Difficult to re-use code
ď‚® Hard code everything from
scratch
ď‚® Teamwork challenges -
parallel programming cannot
be done efficiently
Slide 4 www.edureka.co/ruby-on-rails
ď‚® Leads to disorganization ď‚® Change one thing, break another
Challenges Faced when Designing an Application without a Framework
Slide 5 www.edureka.co/ruby-on-rails
The Solution is to use Design Patterns
Design Patterns is the way to organize a program
in a proper manner
One such design pattern is MVC
Slide 6 www.edureka.co/ruby-on-rails
Introduction – What is MVC
MVC Introduction
MVC is acronym for Model-View-Controller
A software design pattern for developing web and desktop applications
In simple words, a better way of separating the logic of your application from
the display.
Slide 7 www.edureka.co/ruby-on-rails
ď‚® Originally described in terms of a design pattern for use with Smalltalk by Trygve Reenskaug in 1979.
ď‚® His paper was published under the title "Applications Programming in Smalltalk-80: How to use Model-View-
Controller", and paved the groundwork for most future MVC implementations.
 MVC design pattern is used to separate an application’s data, business logic, and presentation; doing so facilitates
the creation of more maintainable, reusable, and testable code.
• Model - Data Layer
• View - User Interface Layer
• Controller - Interacts with the Model
MVC Introduction
Slide 8 www.edureka.co/ruby-on-rails
MVC - Illustration
Web
Browser/Client
HTTP Request
HTTP Response
CONTROLLER MODEL
VIEW
Data object
Request
Data Objects
Response
Render dataEvents
(GET/POST)
Handled by Framework
(Hidden from user)
Database
Database
Request
Raw Data
Response
MVC Container
Website User
http://www.mywebsite.com
Slide 9 www.edureka.co/ruby-on-rails
Model
Data access routines and some business logic can be defined in the model.
Model is responsible for providing the data from the database and saving the data
into the data store.
Models are active representations of database tables: they can connect to your
database, query it (if instructed to do so by a controller) and save data to the
database.
No interaction between models and views: all the logic is handled by controllers.
MVC - Data Layer
Slide 10 www.edureka.co/ruby-on-rails
View
Views define exactly what is presented to the user.
It collects data from the user and gives it to controller and controller invokes the
required model.
Controllers pass data to each view to render in some format.
Views can be described as template files that present their content to the user:
variables, arrays and objects that are used in views are registered through a
controller.
Views should not contain complex business logic; only the elementary control
structures necessary to perform particular operations, such as the iteration of
collected data through a foreach construct, should be contained within a view.
MVC - User Interface Layer
Slide 11 www.edureka.co/ruby-on-rails
Controller
Controllers bind the whole pattern together.
Controller is intermediary between View and Model.
Controllers contain the logic of your application.
Each controller can offer different functionality; controllers retrieve and modify data by
accessing database tables through models; and they register variables and objects, which
can be used in views.
Once request is received from client it executes the appropriate business logic from the
model, decide which view to display based on the user's request and other factors, pass
along the data that each view will need, or hand off control to another controller entirely.
MVC - Interacting With Model
Slide 12 www.edureka.co/ruby-on-rails
DRY
ď‚® DRY just means "Don't Repeat Yourself". Make sure that when you write code, you only write it one time.
ď‚® The DRY principle is stated as "Every piece of knowledge must have a single, unambiguous, authoritative
representation within a system."
Reference: https://maurits.wordpress.com
Slide 13 www.edureka.co/ruby-on-rails
Convention Over Configuration
ď‚® Convention over configuration (also known as coding by convention) is a software design paradigm which seeks
to :
ď‚® For example, if there is a class Sale in the model, the corresponding table in the database is called "sales" by default.
It is only if one deviates from this convention, such as calling the table "product sales", that one needs to write code
regarding these names.
Not losing
flexibility
Decrease
number of
decisions on
developers
Gain
Simplicity
Slide 14 www.edureka.co/ruby-on-rails
MVC Benefits
Slide 15 www.edureka.co/ruby-on-rails
ď‚® Rails application can be created using the following command
>rails new app_name
ď‚® When you create an application using the rails helper script, you can see that a new directly structure is
created for your application. The directory structure will have to following directories that will be explained in
the next slide.
Creating a Rails Application
Slide 16 www.edureka.co/ruby-on-rails
Directory Layout
File /Folder Purpose
app/
Contains the controllers, models, views, helpers, mailers and assets for your
application.
bin/
Contains the rails script that starts your app and can contain other scripts you use to
deploy or run your application.
config/ Configure your application's routes, database, and more
condig.ru Rack configuration for Rack based servers used to start the application.
db/ Contains your current database schema, as well as the database migrations
Gemfile
Gemfile.lock
These files allow you to specify what gem dependencies are needed for your Rails
application. These files are used by the Bundler gem.
Lib/ Extended modules for you application
Log/ Application log files
Slide 17 www.edureka.co/ruby-on-rails
Directory Layout (Contd.)
File /Folder Purpose
public/ The only folder seen by the world as-is. Contains static files and compiled assets.
Rakefile
This file locates and loads tasks that can be run from the command line. Rather than
changing Rakefile, you should add your own tasks by adding files to the lib/tasks
directory of your application
README.rdoc
This is a brief instruction manual for your application. You should edit this file to tell
others what your application does, how to set it up, and so on.
test/ Unit tests, fixtures, and other test apparatus.
tmp/ Temporary files (like cache, pid, and session files).
Vendor/
A place for all third-party code. In a typical Rails application this includes vendor’s
gems.
Slide 18 www.edureka.co/ruby-on-rails
ď‚® Rails application can be booted using the
following command
>rails server
ď‚® This command will fire up WEBrick, a web
server distributed with Ruby.
» Default environment is development
» Default port is 3000
» http://127.0.0.1:3000
Running Rails Application
Slide 19 www.edureka.co/ruby-on-rails
To see your application in action, open a browser window and navigate to http://localhost:3000
Running Rails Application (Contd.)
Slide 20 www.edureka.co/ruby-on-rails
Demo on
MVC in Rails
Questions
Slide 21 www.edureka.co/ruby-on-railsTwitter @edurekaIN, Facebook /edurekaIN, use #AskEdureka for Questions
Principles of MVC for Rails Developers

More Related Content

What's hot (20)

PDF
Introduction to Spring Framework
HĂąng Nguyá»…n Huy
 
PDF
Spring Boot
HongSeong Jeon
 
PPTX
Java beans
Rajkiran Mummadi
 
PPT
MVC ppt presentation
Bhavin Shah
 
PPTX
Introduction to mvc architecture
ravindraquicsolv
 
PPT
MSDN - ASP.NET MVC
Maarten Balliauw
 
PPTX
CSS3 2D/3D transform
Kenny Lee
 
PPTX
Hibernate ppt
Aneega
 
PPTX
Spring Web MVC
zeeshanhanif
 
PPTX
Angularjs PPT
Amit Baghel
 
PPT
Web Standards
ChrisF1502010
 
PPT
Js ppt
Rakhi Thota
 
PPTX
ASP.NET MVC.
Ni
 
PPTX
Build web apps with react js
dhanushkacnd
 
PPTX
Event In JavaScript
ShahDhruv21
 
PPTX
Creating and styling tables
Nicole Ryan
 
PDF
Introduction to CSS3
Doris Chen
 
PDF
Spring framework Introduction
Anuj Singh Rajput
 
Introduction to Spring Framework
HĂąng Nguyá»…n Huy
 
Spring Boot
HongSeong Jeon
 
Java beans
Rajkiran Mummadi
 
MVC ppt presentation
Bhavin Shah
 
Introduction to mvc architecture
ravindraquicsolv
 
MSDN - ASP.NET MVC
Maarten Balliauw
 
CSS3 2D/3D transform
Kenny Lee
 
Hibernate ppt
Aneega
 
Spring Web MVC
zeeshanhanif
 
Angularjs PPT
Amit Baghel
 
Web Standards
ChrisF1502010
 
Js ppt
Rakhi Thota
 
ASP.NET MVC.
Ni
 
Build web apps with react js
dhanushkacnd
 
Event In JavaScript
ShahDhruv21
 
Creating and styling tables
Nicole Ryan
 
Introduction to CSS3
Doris Chen
 
Spring framework Introduction
Anuj Singh Rajput
 

Similar to Principles of MVC for Rails Developers (20)

PDF
Building Application With Ruby On Rails Framework
Vineet Chaturvedi
 
PDF
Building Application with Ruby On Rails Framework
Edureka!
 
KEY
Supa fast Ruby + Rails
Jean-Baptiste Feldis
 
PPT
MVC Demystified: Essence of Ruby on Rails
codeinmotion
 
PPT
A Tour of Ruby On Rails
David Keener
 
PPT
Rubyonrails 090715105949-phpapp01
sagaroceanic11
 
PDF
Ruby Rails Web Development
Sonia Simi
 
PDF
Ruby On Rails
Balint Erdi
 
PDF
Aspose pdf
Jim Jones
 
PDF
Ruby Rails Web Development.pdf
SEO expate Bangladesh Ltd
 
PDF
Introduction to Ruby on Rails
Agnieszka Figiel
 
PPT
Ruby On Rails Presentation
Paul Pajo
 
PDF
Ruby On Rails Basics
Amit Solanki
 
PPT
Ruby On Rails Tutorial
sunniboy
 
PPTX
Ruby on rails for beginers
shanmukhareddy dasi
 
PDF
Lecture #5 Introduction to rails
Evgeniy Hinyuk
 
PDF
Introduction to Rails by Evgeniy Hinyuk
Pivorak MeetUp
 
PDF
The Birth and Evolution of Ruby on Rails
company
 
PDF
Introduction to Ruby on Rails
Alessandro DS
 
PPT
Ruby on rails
chamomilla
 
Building Application With Ruby On Rails Framework
Vineet Chaturvedi
 
Building Application with Ruby On Rails Framework
Edureka!
 
Supa fast Ruby + Rails
Jean-Baptiste Feldis
 
MVC Demystified: Essence of Ruby on Rails
codeinmotion
 
A Tour of Ruby On Rails
David Keener
 
Rubyonrails 090715105949-phpapp01
sagaroceanic11
 
Ruby Rails Web Development
Sonia Simi
 
Ruby On Rails
Balint Erdi
 
Aspose pdf
Jim Jones
 
Ruby Rails Web Development.pdf
SEO expate Bangladesh Ltd
 
Introduction to Ruby on Rails
Agnieszka Figiel
 
Ruby On Rails Presentation
Paul Pajo
 
Ruby On Rails Basics
Amit Solanki
 
Ruby On Rails Tutorial
sunniboy
 
Ruby on rails for beginers
shanmukhareddy dasi
 
Lecture #5 Introduction to rails
Evgeniy Hinyuk
 
Introduction to Rails by Evgeniy Hinyuk
Pivorak MeetUp
 
The Birth and Evolution of Ruby on Rails
company
 
Introduction to Ruby on Rails
Alessandro DS
 
Ruby on rails
chamomilla
 
Ad

More from Edureka! (20)

PDF
What to learn during the 21 days Lockdown | Edureka
Edureka!
 
PDF
Top 10 Dying Programming Languages in 2020 | Edureka
Edureka!
 
PDF
Top 5 Trending Business Intelligence Tools | Edureka
Edureka!
 
PDF
Tableau Tutorial for Data Science | Edureka
Edureka!
 
PDF
Python Programming Tutorial | Edureka
Edureka!
 
PDF
Top 5 PMP Certifications | Edureka
Edureka!
 
PDF
Top Maven Interview Questions in 2020 | Edureka
Edureka!
 
PDF
Linux Mint Tutorial | Edureka
Edureka!
 
PDF
How to Deploy Java Web App in AWS| Edureka
Edureka!
 
PDF
Importance of Digital Marketing | Edureka
Edureka!
 
PDF
RPA in 2020 | Edureka
Edureka!
 
PDF
Email Notifications in Jenkins | Edureka
Edureka!
 
PDF
EA Algorithm in Machine Learning | Edureka
Edureka!
 
PDF
Cognitive AI Tutorial | Edureka
Edureka!
 
PDF
AWS Cloud Practitioner Tutorial | Edureka
Edureka!
 
PDF
Blue Prism Top Interview Questions | Edureka
Edureka!
 
PDF
Big Data on AWS Tutorial | Edureka
Edureka!
 
PDF
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
Edureka!
 
PDF
Kubernetes Installation on Ubuntu | Edureka
Edureka!
 
PDF
Introduction to DevOps | Edureka
Edureka!
 
What to learn during the 21 days Lockdown | Edureka
Edureka!
 
Top 10 Dying Programming Languages in 2020 | Edureka
Edureka!
 
Top 5 Trending Business Intelligence Tools | Edureka
Edureka!
 
Tableau Tutorial for Data Science | Edureka
Edureka!
 
Python Programming Tutorial | Edureka
Edureka!
 
Top 5 PMP Certifications | Edureka
Edureka!
 
Top Maven Interview Questions in 2020 | Edureka
Edureka!
 
Linux Mint Tutorial | Edureka
Edureka!
 
How to Deploy Java Web App in AWS| Edureka
Edureka!
 
Importance of Digital Marketing | Edureka
Edureka!
 
RPA in 2020 | Edureka
Edureka!
 
Email Notifications in Jenkins | Edureka
Edureka!
 
EA Algorithm in Machine Learning | Edureka
Edureka!
 
Cognitive AI Tutorial | Edureka
Edureka!
 
AWS Cloud Practitioner Tutorial | Edureka
Edureka!
 
Blue Prism Top Interview Questions | Edureka
Edureka!
 
Big Data on AWS Tutorial | Edureka
Edureka!
 
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
Edureka!
 
Kubernetes Installation on Ubuntu | Edureka
Edureka!
 
Introduction to DevOps | Edureka
Edureka!
 
Ad

Recently uploaded (20)

DOCX
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
PPTX
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
PDF
NLJUG Speaker academy 2025 - first session
Bert Jan Schrijver
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PDF
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
PDF
“Squinting Vision Pipelines: Detecting and Correcting Errors in Vision Models...
Edge AI and Vision Alliance
 
PDF
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
PDF
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
PDF
“Voice Interfaces on a Budget: Building Real-time Speech Recognition on Low-c...
Edge AI and Vision Alliance
 
PDF
Transcript: Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
PDF
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
PDF
AI Agents in the Cloud: The Rise of Agentic Cloud Architecture
Lilly Gracia
 
PDF
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
PPTX
Designing_the_Future_AI_Driven_Product_Experiences_Across_Devices.pptx
presentifyai
 
PDF
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
PDF
UPDF - AI PDF Editor & Converter Key Features
DealFuel
 
PDF
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 
PDF
NASA A Researcher’s Guide to International Space Station : Physical Sciences ...
Dr. PANKAJ DHUSSA
 
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
NLJUG Speaker academy 2025 - first session
Bert Jan Schrijver
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
“Squinting Vision Pipelines: Detecting and Correcting Errors in Vision Models...
Edge AI and Vision Alliance
 
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
“Voice Interfaces on a Budget: Building Real-time Speech Recognition on Low-c...
Edge AI and Vision Alliance
 
Transcript: Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
AI Agents in the Cloud: The Rise of Agentic Cloud Architecture
Lilly Gracia
 
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
Designing_the_Future_AI_Driven_Product_Experiences_Across_Devices.pptx
presentifyai
 
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
UPDF - AI PDF Editor & Converter Key Features
DealFuel
 
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 
NASA A Researcher’s Guide to International Space Station : Physical Sciences ...
Dr. PANKAJ DHUSSA
 

Principles of MVC for Rails Developers

  • 1. Principles of MVC For rails Developers View Ruby On Rails Course at: www.edureka.co/ruby-on-rails For more details please contact us: US : 1800 275 9730 (toll free) INDIA : +91 88808 62004 Email Us : [email protected] For Queries: Post on Twitter @edurekaIN: #askEdureka Post on Facebook /edurekaIN
  • 2. Slide 2 www.edureka.co/ruby-on-rails Objectives At the end of this module, you will be able to understand: ď‚® Challenges Faced when Designing an Application Without Framework ď‚® MCV Design Patterns ď‚® Logic Behind MVC ď‚® DRY and Convention Over Configuration ď‚® MVC Benefits ď‚® Demo on MVC in RAILS
  • 3. Slide 3 www.edureka.co/ruby-on-rails Challenges Faced when Designing an Application without a Framework ď‚® Complexity in direct coding ď‚® Everything must be tested, which is difficult ď‚® Difficult to re-use code ď‚® Hard code everything from scratch ď‚® Teamwork challenges - parallel programming cannot be done efficiently
  • 4. Slide 4 www.edureka.co/ruby-on-rails ď‚® Leads to disorganization ď‚® Change one thing, break another Challenges Faced when Designing an Application without a Framework
  • 5. Slide 5 www.edureka.co/ruby-on-rails The Solution is to use Design Patterns Design Patterns is the way to organize a program in a proper manner One such design pattern is MVC
  • 6. Slide 6 www.edureka.co/ruby-on-rails Introduction – What is MVC MVC Introduction MVC is acronym for Model-View-Controller A software design pattern for developing web and desktop applications In simple words, a better way of separating the logic of your application from the display.
  • 7. Slide 7 www.edureka.co/ruby-on-rails ď‚® Originally described in terms of a design pattern for use with Smalltalk by Trygve Reenskaug in 1979. ď‚® His paper was published under the title "Applications Programming in Smalltalk-80: How to use Model-View- Controller", and paved the groundwork for most future MVC implementations. ď‚® MVC design pattern is used to separate an application’s data, business logic, and presentation; doing so facilitates the creation of more maintainable, reusable, and testable code. • Model - Data Layer • View - User Interface Layer • Controller - Interacts with the Model MVC Introduction
  • 8. Slide 8 www.edureka.co/ruby-on-rails MVC - Illustration Web Browser/Client HTTP Request HTTP Response CONTROLLER MODEL VIEW Data object Request Data Objects Response Render dataEvents (GET/POST) Handled by Framework (Hidden from user) Database Database Request Raw Data Response MVC Container Website User http://www.mywebsite.com
  • 9. Slide 9 www.edureka.co/ruby-on-rails Model Data access routines and some business logic can be defined in the model. Model is responsible for providing the data from the database and saving the data into the data store. Models are active representations of database tables: they can connect to your database, query it (if instructed to do so by a controller) and save data to the database. No interaction between models and views: all the logic is handled by controllers. MVC - Data Layer
  • 10. Slide 10 www.edureka.co/ruby-on-rails View Views define exactly what is presented to the user. It collects data from the user and gives it to controller and controller invokes the required model. Controllers pass data to each view to render in some format. Views can be described as template files that present their content to the user: variables, arrays and objects that are used in views are registered through a controller. Views should not contain complex business logic; only the elementary control structures necessary to perform particular operations, such as the iteration of collected data through a foreach construct, should be contained within a view. MVC - User Interface Layer
  • 11. Slide 11 www.edureka.co/ruby-on-rails Controller Controllers bind the whole pattern together. Controller is intermediary between View and Model. Controllers contain the logic of your application. Each controller can offer different functionality; controllers retrieve and modify data by accessing database tables through models; and they register variables and objects, which can be used in views. Once request is received from client it executes the appropriate business logic from the model, decide which view to display based on the user's request and other factors, pass along the data that each view will need, or hand off control to another controller entirely. MVC - Interacting With Model
  • 12. Slide 12 www.edureka.co/ruby-on-rails DRY ď‚® DRY just means "Don't Repeat Yourself". Make sure that when you write code, you only write it one time. ď‚® The DRY principle is stated as "Every piece of knowledge must have a single, unambiguous, authoritative representation within a system." Reference: https://maurits.wordpress.com
  • 13. Slide 13 www.edureka.co/ruby-on-rails Convention Over Configuration ď‚® Convention over configuration (also known as coding by convention) is a software design paradigm which seeks to : ď‚® For example, if there is a class Sale in the model, the corresponding table in the database is called "sales" by default. It is only if one deviates from this convention, such as calling the table "product sales", that one needs to write code regarding these names. Not losing flexibility Decrease number of decisions on developers Gain Simplicity
  • 15. Slide 15 www.edureka.co/ruby-on-rails ď‚® Rails application can be created using the following command >rails new app_name ď‚® When you create an application using the rails helper script, you can see that a new directly structure is created for your application. The directory structure will have to following directories that will be explained in the next slide. Creating a Rails Application
  • 16. Slide 16 www.edureka.co/ruby-on-rails Directory Layout File /Folder Purpose app/ Contains the controllers, models, views, helpers, mailers and assets for your application. bin/ Contains the rails script that starts your app and can contain other scripts you use to deploy or run your application. config/ Configure your application's routes, database, and more condig.ru Rack configuration for Rack based servers used to start the application. db/ Contains your current database schema, as well as the database migrations Gemfile Gemfile.lock These files allow you to specify what gem dependencies are needed for your Rails application. These files are used by the Bundler gem. Lib/ Extended modules for you application Log/ Application log files
  • 17. Slide 17 www.edureka.co/ruby-on-rails Directory Layout (Contd.) File /Folder Purpose public/ The only folder seen by the world as-is. Contains static files and compiled assets. Rakefile This file locates and loads tasks that can be run from the command line. Rather than changing Rakefile, you should add your own tasks by adding files to the lib/tasks directory of your application README.rdoc This is a brief instruction manual for your application. You should edit this file to tell others what your application does, how to set it up, and so on. test/ Unit tests, fixtures, and other test apparatus. tmp/ Temporary files (like cache, pid, and session files). Vendor/ A place for all third-party code. In a typical Rails application this includes vendor’s gems.
  • 18. Slide 18 www.edureka.co/ruby-on-rails ď‚® Rails application can be booted using the following command >rails server ď‚® This command will fire up WEBrick, a web server distributed with Ruby. » Default environment is development » Default port is 3000 » http://127.0.0.1:3000 Running Rails Application
  • 19. Slide 19 www.edureka.co/ruby-on-rails To see your application in action, open a browser window and navigate to http://localhost:3000 Running Rails Application (Contd.)
  • 21. Questions Slide 21 www.edureka.co/ruby-on-railsTwitter @edurekaIN, Facebook /edurekaIN, use #AskEdureka for Questions