SlideShare a Scribd company logo
Session 1:
Getting Started With Rails
IRIS, NITK
About the
Bootcamp
- IRIS is a team of motivated students
working to digitize administrative,
academic and alumni-related
activities.
- The Ruby on Rails Bootcamp is an
opportunity for us to interact with the
next generation and help them make
NITK a better place.
- We are students just like you, not
professionals :)
My Philosophy
- Programming is equal parts engineering and art.
- Programming is (mostly) self-taught.
- Learning small, specific concepts at a time is effective.
- Feedback accelerates growth.
Caution: I take myself too seriously ยฏ_(ใƒ„)_/ยฏ
Some Web Terms
(Oversimplified)
- A Webpage is a HTML document that
can be viewed by browser.
- A Website is a collection of webpages.
- A Web Application processes client
requests and responds with web
pages.
- A Web Framework solves common
web development problems like data
management, session management
and building attractive UI.
What is MVC? Divides program logic into three
interconnected elements:
- Model: stores and processes data.
- Controller: decides the flow of process.
- View: presents data to user.
Letโ€™s take a closer look with examples.
Example: Exam Grades
How to present data? (View)
Studentโ€™s view: marks, grades of all my courses
Facultyโ€™s view: marks, grades of all students and a
statistical breakdown of a particular course
Academic Sectionโ€™s view: grades of all students
arranged by semester
How to store and process data? (Model)
- Spreadsheets
- Databases
- Cloud Storage
How to decide which view to show? (Controller)
Example: IRIS Forms
How to present data? (View)
Form Creatorโ€™s view: show individual and
summary of responses, ability to edit form.
Form Filler' view: ability to fill, edit and delete
form response.
How to store and process data? (Model)
- Spreadsheets
- Databases
- Cloud Storage
How to decide which view to show? (Controller)
How MVC Works
Why Bother with MVC?
- Clean, maintainable code
- Loose coupling of the components
- Logical separation of concerns
Itโ€™s alright if you donโ€™t appreciate MVC right now - experience with building applications required :)
What is Ruby on Rails?
- Ruby is a loosely-typed, interpreted
language.
- Ruby โ€œoptimizesโ€ for programmer
happiness with clean, elegant syntax.
- Rails is a MVC web framework built on top
of Ruby.
- Models and Controllers are written in Ruby
whereas Views are written in HTML, JS and
other formats.
Thatโ€™s all of theory - letโ€™s build a Website!
Building a โ€œAbout Meโ€ Website on Rails
Prerequisites:
- Install Ubuntu (on VM or dual boot)
- Install Git
- Install RVM, Ruby and Rails
- Clone the RoR bootcamp repository

More Related Content

Similar to Session 1 - Getting Started With Rails.pptx (20)

PPT
Ruby On Rails Tutorial
sunniboy
ย 
KEY
Intro to Ruby on Rails
rschmukler
ย 
PDF
Learning Rails 3 Rails from the Outside In 1st Edition Simon St. Laurent
tobarpaolico
ย 
PDF
Aspose pdf
Jim Jones
ย 
PDF
The Birth and Evolution of Ruby on Rails
company
ย 
PDF
Ruby Rails Web Development
Sonia Simi
ย 
PPT
Ruby On Rails
Gautam Rege
ย 
PDF
Introduction to Rails - presented by Arman Ortega
arman o
ย 
PPTX
12 Introduction to Rails
Deepak Hagadur Bheemaraju
ย 
PPT
Viridians on Rails
Viridians
ย 
PPT
RubyonRails
webuploader
ย 
PPT
Ruby on rails
chamomilla
ย 
PPT
Ruby On Rails Siddhesh
Siddhesh Bhobe
ย 
PDF
Beyond rails new
Paul Oguda
ย 
PDF
Ruby and Rails for womens
s4nx
ย 
DOC
Rails interview questions
Durgesh Tripathi
ย 
KEY
Introduction to Rails
Menno van der Sman
ย 
PDF
Introduction to Rails by Evgeniy Hinyuk
Pivorak MeetUp
ย 
PDF
Lecture #5 Introduction to rails
Evgeniy Hinyuk
ย 
PDF
Ruby on Rails 101 - Presentation Slides for a Five Day Introductory Course
peter_marklund
ย 
Ruby On Rails Tutorial
sunniboy
ย 
Intro to Ruby on Rails
rschmukler
ย 
Learning Rails 3 Rails from the Outside In 1st Edition Simon St. Laurent
tobarpaolico
ย 
Aspose pdf
Jim Jones
ย 
The Birth and Evolution of Ruby on Rails
company
ย 
Ruby Rails Web Development
Sonia Simi
ย 
Ruby On Rails
Gautam Rege
ย 
Introduction to Rails - presented by Arman Ortega
arman o
ย 
12 Introduction to Rails
Deepak Hagadur Bheemaraju
ย 
Viridians on Rails
Viridians
ย 
RubyonRails
webuploader
ย 
Ruby on rails
chamomilla
ย 
Ruby On Rails Siddhesh
Siddhesh Bhobe
ย 
Beyond rails new
Paul Oguda
ย 
Ruby and Rails for womens
s4nx
ย 
Rails interview questions
Durgesh Tripathi
ย 
Introduction to Rails
Menno van der Sman
ย 
Introduction to Rails by Evgeniy Hinyuk
Pivorak MeetUp
ย 
Lecture #5 Introduction to rails
Evgeniy Hinyuk
ย 
Ruby on Rails 101 - Presentation Slides for a Five Day Introductory Course
peter_marklund
ย 

Recently uploaded (20)

PDF
Australian Enterprises Need Project Service Automation
Navision India
ย 
PPTX
TexSender Pro 8.9.1 Crack Full Version Download
cracked shares
ย 
PDF
Code and No-Code Journeys: The Maintenance Shortcut
Applitools
ย 
PDF
Infrastructure planning and resilience - Keith Hastings.pptx.pdf
Safe Software
ย 
PPTX
Function & Procedure: Function Vs Procedure in PL/SQL
Shani Tiwari
ย 
PPTX
BB FlashBack Pro 5.61.0.4843 With Crack Free Download
cracked shares
ย 
PDF
Meet in the Middle: Solving the Low-Latency Challenge for Agentic AI
Alluxio, Inc.
ย 
PDF
Introduction to Apache Icebergโ„ข & Tableflow
Alluxio, Inc.
ย 
PPTX
ChessBase 18.02 Crack + Serial Key Free Download
cracked shares
ย 
PPTX
Transforming Lending with IntelliGrow โ€“ Advanced Loan Software Solutions
Intelli grow
ย 
PDF
Optimizing Tiered Storage for Low-Latency Real-Time Analytics at AI Scale
Alluxio, Inc.
ย 
PPTX
PCC IT Forum 2025 - Legislative Technology Snapshot
Gareth Oakes
ย 
PPT
Brief History of Python by Learning Python in three hours
adanechb21
ย 
PDF
Ready Layer One: Intro to the Model Context Protocol
mmckenna1
ย 
PDF
Notification System for Construction Logistics Application
Safe Software
ย 
PPTX
prodad heroglyph crack 2.0.214.2 Full Free Download
cracked shares
ย 
PDF
Message Level Status (MLS): The Instant Feedback Mechanism for UAE e-Invoicin...
Prachi Desai
ย 
PDF
custom development enhancement | Togglenow.pdf
aswinisuhu
ย 
PDF
Windows 10 Professional Preactivated.pdf
asghxhsagxjah
ย 
PDF
Top 10 AI Use Cases Every Business Should Know.pdf
nicogonzalez1075
ย 
Australian Enterprises Need Project Service Automation
Navision India
ย 
TexSender Pro 8.9.1 Crack Full Version Download
cracked shares
ย 
Code and No-Code Journeys: The Maintenance Shortcut
Applitools
ย 
Infrastructure planning and resilience - Keith Hastings.pptx.pdf
Safe Software
ย 
Function & Procedure: Function Vs Procedure in PL/SQL
Shani Tiwari
ย 
BB FlashBack Pro 5.61.0.4843 With Crack Free Download
cracked shares
ย 
Meet in the Middle: Solving the Low-Latency Challenge for Agentic AI
Alluxio, Inc.
ย 
Introduction to Apache Icebergโ„ข & Tableflow
Alluxio, Inc.
ย 
ChessBase 18.02 Crack + Serial Key Free Download
cracked shares
ย 
Transforming Lending with IntelliGrow โ€“ Advanced Loan Software Solutions
Intelli grow
ย 
Optimizing Tiered Storage for Low-Latency Real-Time Analytics at AI Scale
Alluxio, Inc.
ย 
PCC IT Forum 2025 - Legislative Technology Snapshot
Gareth Oakes
ย 
Brief History of Python by Learning Python in three hours
adanechb21
ย 
Ready Layer One: Intro to the Model Context Protocol
mmckenna1
ย 
Notification System for Construction Logistics Application
Safe Software
ย 
prodad heroglyph crack 2.0.214.2 Full Free Download
cracked shares
ย 
Message Level Status (MLS): The Instant Feedback Mechanism for UAE e-Invoicin...
Prachi Desai
ย 
custom development enhancement | Togglenow.pdf
aswinisuhu
ย 
Windows 10 Professional Preactivated.pdf
asghxhsagxjah
ย 
Top 10 AI Use Cases Every Business Should Know.pdf
nicogonzalez1075
ย 
Ad

Session 1 - Getting Started With Rails.pptx

  • 1. Session 1: Getting Started With Rails IRIS, NITK
  • 2. About the Bootcamp - IRIS is a team of motivated students working to digitize administrative, academic and alumni-related activities. - The Ruby on Rails Bootcamp is an opportunity for us to interact with the next generation and help them make NITK a better place. - We are students just like you, not professionals :)
  • 3. My Philosophy - Programming is equal parts engineering and art. - Programming is (mostly) self-taught. - Learning small, specific concepts at a time is effective. - Feedback accelerates growth. Caution: I take myself too seriously ยฏ_(ใƒ„)_/ยฏ
  • 4. Some Web Terms (Oversimplified) - A Webpage is a HTML document that can be viewed by browser. - A Website is a collection of webpages. - A Web Application processes client requests and responds with web pages. - A Web Framework solves common web development problems like data management, session management and building attractive UI.
  • 5. What is MVC? Divides program logic into three interconnected elements: - Model: stores and processes data. - Controller: decides the flow of process. - View: presents data to user. Letโ€™s take a closer look with examples.
  • 6. Example: Exam Grades How to present data? (View) Studentโ€™s view: marks, grades of all my courses Facultyโ€™s view: marks, grades of all students and a statistical breakdown of a particular course Academic Sectionโ€™s view: grades of all students arranged by semester How to store and process data? (Model) - Spreadsheets - Databases - Cloud Storage How to decide which view to show? (Controller)
  • 7. Example: IRIS Forms How to present data? (View) Form Creatorโ€™s view: show individual and summary of responses, ability to edit form. Form Filler' view: ability to fill, edit and delete form response. How to store and process data? (Model) - Spreadsheets - Databases - Cloud Storage How to decide which view to show? (Controller)
  • 9. Why Bother with MVC? - Clean, maintainable code - Loose coupling of the components - Logical separation of concerns Itโ€™s alright if you donโ€™t appreciate MVC right now - experience with building applications required :)
  • 10. What is Ruby on Rails? - Ruby is a loosely-typed, interpreted language. - Ruby โ€œoptimizesโ€ for programmer happiness with clean, elegant syntax. - Rails is a MVC web framework built on top of Ruby. - Models and Controllers are written in Ruby whereas Views are written in HTML, JS and other formats. Thatโ€™s all of theory - letโ€™s build a Website!
  • 11. Building a โ€œAbout Meโ€ Website on Rails Prerequisites: - Install Ubuntu (on VM or dual boot) - Install Git - Install RVM, Ruby and Rails - Clone the RoR bootcamp repository