Suche senden
Hochladen
Intro to Ruby on Rails
•
Als PPT, PDF herunterladen
•
1 gefällt mir
•
1,069 views
Mark Menard
Folgen
A brief introduction to Ruby on Rails.
Weniger lesen
Mehr lesen
Technologie
Melden
Teilen
Melden
Teilen
1 von 48
Jetzt herunterladen
Empfohlen
Project Fedena and Why Ruby on Rails - ArvindArvind G S
Project Fedena and Why Ruby on Rails - ArvindArvind G S
ThoughtWorks
Ruby on Rails workshop for beginner
Ruby on Rails workshop for beginner
Umair Amjad
A Toda Maquina Con Ruby on Rails
A Toda Maquina Con Ruby on Rails
Rafael García
Be Happy With Ruby on Rails - Ecosystem
Be Happy With Ruby on Rails - Ecosystem
Lucas Renan
Ruby on Rails - An overview
Ruby on Rails - An overview
Thomas Asikis
Introduction to Ruby on Rails
Introduction to Ruby on Rails
hasan2000
Rails Concept
Rails Concept
Javed Hussain
The Evolution of Airbnb's Frontend
The Evolution of Airbnb's Frontend
Spike Brehm
Empfohlen
Project Fedena and Why Ruby on Rails - ArvindArvind G S
Project Fedena and Why Ruby on Rails - ArvindArvind G S
ThoughtWorks
Ruby on Rails workshop for beginner
Ruby on Rails workshop for beginner
Umair Amjad
A Toda Maquina Con Ruby on Rails
A Toda Maquina Con Ruby on Rails
Rafael García
Be Happy With Ruby on Rails - Ecosystem
Be Happy With Ruby on Rails - Ecosystem
Lucas Renan
Ruby on Rails - An overview
Ruby on Rails - An overview
Thomas Asikis
Introduction to Ruby on Rails
Introduction to Ruby on Rails
hasan2000
Rails Concept
Rails Concept
Javed Hussain
The Evolution of Airbnb's Frontend
The Evolution of Airbnb's Frontend
Spike Brehm
React.js for Rails Developers
React.js for Rails Developers
Arkency
React on rails v6.1 at LA Ruby, November 2016
React on rails v6.1 at LA Ruby, November 2016
Justin Gordon
RESTful Web Applications with Apache Sling
RESTful Web Applications with Apache Sling
Bertrand Delacretaz
Introduction to Ruby on Rails
Introduction to Ruby on Rails
Alessandro DS
Web a Quebec - JS Debugging
Web a Quebec - JS Debugging
Rami Sayar
An Intense Overview of the React Ecosystem
An Intense Overview of the React Ecosystem
Rami Sayar
Rails Engine Patterns
Rails Engine Patterns
Andy Maleh
PLAT-8 Spring Web Scripts and Spring Surf
PLAT-8 Spring Web Scripts and Spring Surf
Alfresco Software
API Development with Laravel
API Development with Laravel
Michael Peacock
Rails Engine | Modular application
Rails Engine | Modular application
mirrec
Build Your Own CMS with Apache Sling
Build Your Own CMS with Apache Sling
Bob Paulin
Rails Engine :: modularize you app
Rails Engine :: modularize you app
Muntasim Ahmed
Laravel development (Laravel History, Environment Setup & Laravel Installatio...
Laravel development (Laravel History, Environment Setup & Laravel Installatio...
Dilouar Hossain
AngularJS meets Rails
AngularJS meets Rails
Elena Torró
How angularjs saves rails
How angularjs saves rails
Michael He
RoR 101: Session 5
RoR 101: Session 5
Rory Gianni
Laravel Eloquent ORM
Laravel Eloquent ORM
Ba Thanh Huynh
Laravel overview
Laravel overview
Obinna Akunne
Laravel introduction
Laravel introduction
Simon Funk
Rails Request & Middlewares
Rails Request & Middlewares
Santosh Wadghule
Apex Enterprise Patterns: Building Strong Foundations
Apex Enterprise Patterns: Building Strong Foundations
Salesforce Developers
AGADOS function & feature Chapter-02 biz logic define
AGADOS function & feature Chapter-02 biz logic define
Yongkyoo Park
Weitere ähnliche Inhalte
Was ist angesagt?
React.js for Rails Developers
React.js for Rails Developers
Arkency
React on rails v6.1 at LA Ruby, November 2016
React on rails v6.1 at LA Ruby, November 2016
Justin Gordon
RESTful Web Applications with Apache Sling
RESTful Web Applications with Apache Sling
Bertrand Delacretaz
Introduction to Ruby on Rails
Introduction to Ruby on Rails
Alessandro DS
Web a Quebec - JS Debugging
Web a Quebec - JS Debugging
Rami Sayar
An Intense Overview of the React Ecosystem
An Intense Overview of the React Ecosystem
Rami Sayar
Rails Engine Patterns
Rails Engine Patterns
Andy Maleh
PLAT-8 Spring Web Scripts and Spring Surf
PLAT-8 Spring Web Scripts and Spring Surf
Alfresco Software
API Development with Laravel
API Development with Laravel
Michael Peacock
Rails Engine | Modular application
Rails Engine | Modular application
mirrec
Build Your Own CMS with Apache Sling
Build Your Own CMS with Apache Sling
Bob Paulin
Rails Engine :: modularize you app
Rails Engine :: modularize you app
Muntasim Ahmed
Laravel development (Laravel History, Environment Setup & Laravel Installatio...
Laravel development (Laravel History, Environment Setup & Laravel Installatio...
Dilouar Hossain
AngularJS meets Rails
AngularJS meets Rails
Elena Torró
How angularjs saves rails
How angularjs saves rails
Michael He
RoR 101: Session 5
RoR 101: Session 5
Rory Gianni
Laravel Eloquent ORM
Laravel Eloquent ORM
Ba Thanh Huynh
Laravel overview
Laravel overview
Obinna Akunne
Laravel introduction
Laravel introduction
Simon Funk
Rails Request & Middlewares
Rails Request & Middlewares
Santosh Wadghule
Was ist angesagt?
(20)
React.js for Rails Developers
React.js for Rails Developers
React on rails v6.1 at LA Ruby, November 2016
React on rails v6.1 at LA Ruby, November 2016
RESTful Web Applications with Apache Sling
RESTful Web Applications with Apache Sling
Introduction to Ruby on Rails
Introduction to Ruby on Rails
Web a Quebec - JS Debugging
Web a Quebec - JS Debugging
An Intense Overview of the React Ecosystem
An Intense Overview of the React Ecosystem
Rails Engine Patterns
Rails Engine Patterns
PLAT-8 Spring Web Scripts and Spring Surf
PLAT-8 Spring Web Scripts and Spring Surf
API Development with Laravel
API Development with Laravel
Rails Engine | Modular application
Rails Engine | Modular application
Build Your Own CMS with Apache Sling
Build Your Own CMS with Apache Sling
Rails Engine :: modularize you app
Rails Engine :: modularize you app
Laravel development (Laravel History, Environment Setup & Laravel Installatio...
Laravel development (Laravel History, Environment Setup & Laravel Installatio...
AngularJS meets Rails
AngularJS meets Rails
How angularjs saves rails
How angularjs saves rails
RoR 101: Session 5
RoR 101: Session 5
Laravel Eloquent ORM
Laravel Eloquent ORM
Laravel overview
Laravel overview
Laravel introduction
Laravel introduction
Rails Request & Middlewares
Rails Request & Middlewares
Ähnlich wie Intro to Ruby on Rails
Apex Enterprise Patterns: Building Strong Foundations
Apex Enterprise Patterns: Building Strong Foundations
Salesforce Developers
AGADOS function & feature Chapter-02 biz logic define
AGADOS function & feature Chapter-02 biz logic define
Yongkyoo Park
OSDC 2009 Rails Turtorial
OSDC 2009 Rails Turtorial
Yi-Ting Cheng
Ruby For Startups
Ruby For Startups
Mike Subelsky
Multi-tenancy with Rails
Multi-tenancy with Rails
Paul Gallagher
Beyond the Basics: Advanced Infrastructure as Code Programming on AWS (DEV327...
Beyond the Basics: Advanced Infrastructure as Code Programming on AWS (DEV327...
Amazon Web Services
DynamicRecord Presentation
DynamicRecord Presentation
linoj
Intro to Rails ActiveRecord
Intro to Rails ActiveRecord
Mark Menard
Working Effectively With Legacy Code
Working Effectively With Legacy Code
scidept
2011-02-03 LA RubyConf Rails3 TDD Workshop
2011-02-03 LA RubyConf Rails3 TDD Workshop
Wolfram Arnold
Um roadmap do Framework Ruby on Rails, do Rails 1 ao Rails 4 - DevDay 2013
Um roadmap do Framework Ruby on Rails, do Rails 1 ao Rails 4 - DevDay 2013
Joao Lucas Santana
Rails antipattern-public
Rails antipattern-public
Chul Ju Hong
Rails antipatterns
Rails antipatterns
Chul Ju Hong
Ruby On Rails
Ruby On Rails
Gautam Rege
Pyramid deployment
Pyramid deployment
Carlos de la Guardia
Phoenix for Rails Devs
Phoenix for Rails Devs
Diacode
RightScale API: How To Build Your Own IT Vending Machine - RightScale Compute...
RightScale API: How To Build Your Own IT Vending Machine - RightScale Compute...
RightScale
Practical catalyst
Practical catalyst
dwm042
Building Mobile Friendly APIs in Rails
Building Mobile Friendly APIs in Rails
Jim Jeffers
SproutCore and the Future of Web Apps
SproutCore and the Future of Web Apps
Mike Subelsky
Ähnlich wie Intro to Ruby on Rails
(20)
Apex Enterprise Patterns: Building Strong Foundations
Apex Enterprise Patterns: Building Strong Foundations
AGADOS function & feature Chapter-02 biz logic define
AGADOS function & feature Chapter-02 biz logic define
OSDC 2009 Rails Turtorial
OSDC 2009 Rails Turtorial
Ruby For Startups
Ruby For Startups
Multi-tenancy with Rails
Multi-tenancy with Rails
Beyond the Basics: Advanced Infrastructure as Code Programming on AWS (DEV327...
Beyond the Basics: Advanced Infrastructure as Code Programming on AWS (DEV327...
DynamicRecord Presentation
DynamicRecord Presentation
Intro to Rails ActiveRecord
Intro to Rails ActiveRecord
Working Effectively With Legacy Code
Working Effectively With Legacy Code
2011-02-03 LA RubyConf Rails3 TDD Workshop
2011-02-03 LA RubyConf Rails3 TDD Workshop
Um roadmap do Framework Ruby on Rails, do Rails 1 ao Rails 4 - DevDay 2013
Um roadmap do Framework Ruby on Rails, do Rails 1 ao Rails 4 - DevDay 2013
Rails antipattern-public
Rails antipattern-public
Rails antipatterns
Rails antipatterns
Ruby On Rails
Ruby On Rails
Pyramid deployment
Pyramid deployment
Phoenix for Rails Devs
Phoenix for Rails Devs
RightScale API: How To Build Your Own IT Vending Machine - RightScale Compute...
RightScale API: How To Build Your Own IT Vending Machine - RightScale Compute...
Practical catalyst
Practical catalyst
Building Mobile Friendly APIs in Rails
Building Mobile Friendly APIs in Rails
SproutCore and the Future of Web Apps
SproutCore and the Future of Web Apps
Mehr von Mark Menard
Let's Do Some Upfront Design - WindyCityRails 2014
Let's Do Some Upfront Design - WindyCityRails 2014
Mark Menard
A Tour of Wyriki
A Tour of Wyriki
Mark Menard
Small Code - RailsConf 2014
Small Code - RailsConf 2014
Mark Menard
Small Code - Ruby on Ales 2014
Small Code - Ruby on Ales 2014
Mark Menard
Write Small Things (Code)
Write Small Things (Code)
Mark Menard
JRuby 6 Years in Production
JRuby 6 Years in Production
Mark Menard
Conference of Grand Masters Tech Talk 2013
Conference of Grand Masters Tech Talk 2013
Mark Menard
Startup Lessons Learned
Startup Lessons Learned
Mark Menard
Mobile Platforms and App Development
Mobile Platforms and App Development
Mark Menard
Ruby on Rails Training - Module 2
Ruby on Rails Training - Module 2
Mark Menard
Ruby on Rails Training - Module 1
Ruby on Rails Training - Module 1
Mark Menard
Introduction to Ruby
Introduction to Ruby
Mark Menard
Behavior Driven Development with Rails
Behavior Driven Development with Rails
Mark Menard
JRuby in a Java World
JRuby in a Java World
Mark Menard
Mehr von Mark Menard
(14)
Let's Do Some Upfront Design - WindyCityRails 2014
Let's Do Some Upfront Design - WindyCityRails 2014
A Tour of Wyriki
A Tour of Wyriki
Small Code - RailsConf 2014
Small Code - RailsConf 2014
Small Code - Ruby on Ales 2014
Small Code - Ruby on Ales 2014
Write Small Things (Code)
Write Small Things (Code)
JRuby 6 Years in Production
JRuby 6 Years in Production
Conference of Grand Masters Tech Talk 2013
Conference of Grand Masters Tech Talk 2013
Startup Lessons Learned
Startup Lessons Learned
Mobile Platforms and App Development
Mobile Platforms and App Development
Ruby on Rails Training - Module 2
Ruby on Rails Training - Module 2
Ruby on Rails Training - Module 1
Ruby on Rails Training - Module 1
Introduction to Ruby
Introduction to Ruby
Behavior Driven Development with Rails
Behavior Driven Development with Rails
JRuby in a Java World
JRuby in a Java World
Kürzlich hochgeladen
🐬 The future of MySQL is Postgres 🐘
🐬 The future of MySQL is Postgres 🐘
RTylerCroy
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
Michael W. Hawkins
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
UK Journal
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
lior mazor
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
Radu Cotescu
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
hans926745
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
Remote DBA Services
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
Enterprise Knowledge
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
ThousandEyes
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
The Digital Insurer
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
Principled Technologies
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Neo4j
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Miguel Araújo
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
naman860154
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
Delhi Call girls
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Drew Madelung
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
Product Anonymous
Kürzlich hochgeladen
(20)
🐬 The future of MySQL is Postgres 🐘
🐬 The future of MySQL is Postgres 🐘
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
Intro to Ruby on Rails
1.
2.
Ruby © Vita
Rara, Inc. “ I always knew one day Smalltalk would replace Java. I just didn’t know it would be called Ruby.” - Kent Beck, Creator of “Extreme Programming”
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
Migration Example ©
Vita Rara, Inc. create_table "users" , :force => true do |t| t.string :login, :email, :remember_token t.string :salt, :crypted_password, :limit => 40 t.timestamps t.datetime :remember_token_expires_at end
13.
14.
15.
ActiveRecord Model Example
© Vita Rara, Inc. create_table "persons" do |t| t.string :first_name, last_name t.timestamps end class Person < ActiveRecord::Base end p = Person.new p.first_name = ‘Mark’ p.last_name = ‘Menard’ p.save
16.
17.
18.
19.
20.
21.
22.
23.
ActiveRecord Associations ©
Vita Rara, Inc. # Has Many class Order < ActiveRecord::Base has_many :order_line_items end class OrderLineItem < ActiveRecord::Base belongs_to :order end # Has One class Party < ActiveRecord::Base has_one :login_credential end class LoginCredential < ActiveRecord::Base belongs_to :party end
24.
25.
26.
27.
28.
Validation Example ©
Vita Rara, Inc. class Person < ActiveRecord::Base def validate puts “validate invoked” end def validate_on_create puts “validate_on_create invoked” end def validate_on_update puts “validate_on_update invoked” end end peter = Person.create(:name => “Peter”) # => validate, validate_on_create invoked peter.last_name = “Forsberg” peter.save # => validate_on_update invoked
29.
30.
Validation Macro Example
© Vita Rara, Inc. class User < ActiveRecord::Base validates_presence_of :name, :email, :password validates_format_of :name, :with => /^ +$/ , :message => “may only contain word characters” validates_uniqueness_of :name, :message => “is already in use” validates_length_of :password, :within => 4 .. 40 validates_confirmation_of :password validates_inclusion_of :role, :in => %w(super admin user) , :message => “must be super , admin, or user”, :allow_nil => true validates_presence_of :customer_id, :if => Proc. new { |u| %w(admin user) .include?(u.role) } validates_numericality_of :weight, :only_integer => true, :allow_nil => true end
31.
32.
33.
34.
A Simple Controller
© Vita Rara, Inc. class PrioritiesController < InternalController def show @priority = current_account.priorities.find(params[:id]) end def new @priority = Priority. new end def create @priority = Priority. new (params[:priority]) if @priority.save flash[:notice] = 'The priority was successfully created.' redirect_to account_url else render :action => "new" end end ... end
35.
36.
37.
38.
39.
40.
41.
Example View ©
Vita Rara, Inc. <p> <b>Name:</b> <%=h @category.name %> </p> <%= link_to 'Edit' , edit_category_path(@category) %> | <%= link_to 'Back' , categories_path %>
42.
A Check Book
Ledger Example
43.
44.
45.
Shameless Self Promotion
46.
47.
48.
Jetzt herunterladen