Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Introduction to Ruby on Rails
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Angel Avgerinos
March 19, 2013
Programming
200
3
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Introduction to Ruby on Rails
Presentation at University of Piraeus
Angel Avgerinos
March 19, 2013
More Decks by Angel Avgerinos
See All by Angel Avgerinos
Hacking our way to Geembo
eavgerinos
1
110
Other Decks in Programming
See All in Programming
技術記事、AIに書かせるか、自分で書くか? 〜それでも私が自分の手で書く理由〜 / #QiitaConference
jnchito
2
1.4k
さぁV100、メモリをお食べ・・・
nilpe
0
150
TSKaigi Night Talks 2026_TypeScriptでサプライチェーンの整合性を型に閉じ込める
geekplus_tech
0
400
「AIで開発し、AIを届ける」をEvalでつなぐ 〜AIネイティブに始めるプロダクト開発の実践〜 / Connecting "Develop with AI, deliver AI" with Eval
rkaga
4
5.3k
AI 輔助遺留系統現代化的經驗分享
jame2408
1
910
不変条件と整合性境界—ビジネスが決める設計判断と実現パターン / Invariants and Consistency Boundaries
nrslib
14
5.7k
New "Type" system on PicoRuby
pocke
1
990
Vite+ Unified Toolchain for the Web
naokihaba
0
330
Even G2とAWSで推しのエージェントを召喚しよう!
har1101
1
120
決定論的オーケストレーションの設計と実装 / Design and Implementation of Deterministic Orchestration
nrslib
4
1.5k
ローカルLLMでどこまでコードが書けるか -拡張版 / How much code can be written on a local LLM Extended
kishida
11
4.3k
jQueryをバージョンアップする前に使いたいjQuery Migrate
matsuo_atsushi
0
570
Featured
See All Featured
Being A Developer After 40
akosma
91
590k
The #1 spot is gone: here's how to win anyway
tamaranovitovic
2
1.1k
Writing Fast Ruby
sferik
630
63k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
17k
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
170
Ethics towards AI in product and experience design
skipperchong
2
310
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
310
So, you think you're a good person
axbom
PRO
2
2.1k
WCS-LA-2024
lcolladotor
0
650
Navigating Team Friction
lara
192
16k
Design in an AI World
tapps
1
250
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.5k
Transcript
INTRODUCTION - to -
Angel Avgerinos Ruby on Rails & Java developer
RUBY A multi-paradigm general purpose language
Yukihiro Matsumoto (Matz) Creator of Ruby programming language (1995)
What Ruby is
OBJECT - ORIENTED Everything in Ruby is an object (instance
of a Class)
FUNCTIONAL Supports Lambdas and Procs
REFLECTIVE Ruby can modify the structure of an object at
runtime
IMPERATIVE Modules and Blocks
Why Ruby rocks
OPEN SOURCE https://github.com/ruby/ruby
READABLE AND SEXY No semicolons, no mandatory parentheses, method chaining.
TREND RIGHT NOW 2nd most popular language at Github.com
CHECK THIS OUT
class Calc # Creates getters and setters for
num1 and num2 attr_accessor :num1, :num2 def initialize(num1, num2) @num1 = num1 @num2 = num2 end def add #string interpolation puts "#{@num1 + @num2}" end end c = Calc.new(1,2) c.add
WHAT ABOUT LIBRARIES ?
Gem A package format for Ruby programs and libraries
The structure of a Gem
INSTALLING GEMS from RubyGems.org gem install gem_name
Let’s take it to the next level Just type...
gem install rails Now you have superpower
Ruby on Rails MVC framework to get you on the
Web
David Heinemeier Hansson (DHH) Creator of Ruby on Rails (2004)
and partner at 37signals
What Rails is
GEM Just a Gem with reusable code! No fancy installs!
OPEN SOURCE https://github.com/rails/rails
FRAMEWORK A Web application framework.
MVC Awesome pattern.
What Rails is NOT
What Rails is NOT A Programming language
AWESOMENESS MVC
MODEL VIEW CONTROLLER View Controller Model Database
MODEL
CONTROLLER
VIEW
STARTING A NEW RAILS PROJECT
rails new app_name TYPE...
RAILS APP STRUCTURE
/APP
/CONFIG
GEMFILE Where your life becomes easier
source 'https://rubygems.org' gem 'rails', '3.2.12' group :development, :test do
gem 'sqlite3' end group :assets do gem 'sass-‐rails', '~> 3.2.3' gem 'coffee-‐rails', '~> 3.2.1' gem 'uglifier', '>= 1.0.3' gem 'compass-‐rails' gem 'sassy-‐buttons' gem 'bootstrap-‐sass', '~> 2.3.0.1' gem 'font-‐awesome-‐sass-‐rails' end gem 'jquery-‐rails' gem 'omniauth-‐facebook' gem 'devise', '2.2.3' gem 'geocoder'
A GLIMPSE OF RAILS
SCAFFOLDING rails g scaffold User email:string
MIGRATION rake db:migrate
RAILS SERVER rails s
DONE!
HOW TO GET STARTED
tryruby.org codeschool.com codecademy.com railstutorial.org/book railscasts.com github.com RESOURCES
THANKS @eavgerinos
[email protected]