Enviar búsqueda
Cargar
ActiveRecord
•
Descargar como KEY, PDF
•
0 recomendaciones
•
438 vistas
Blazing Cloud
Seguir
An overview of ActiveRecord (Rails 3)
Leer menos
Leer más
Tecnología
Vista de diapositivas
Denunciar
Compartir
Vista de diapositivas
Denunciar
Compartir
1 de 17
Descargar ahora
Recomendados
Active Record
Active Record
Blazing Cloud
ReactiveMongo - non blocking and asynchronous I/O operations
ReactiveMongo - non blocking and asynchronous I/O operations
David Pichsenmeister
与 PHP 和 Perl 使用 MySQL 数据库
与 PHP 和 Perl 使用 MySQL 数据库
YUCHENG HU
Sequelize
Sequelize
Tarek Raihan
Aprimorando sua Aplicação com Ext JS 4 - BrazilJS
Aprimorando sua Aplicação com Ext JS 4 - BrazilJS
Loiane Groner
Membuat Form Login
Membuat Form Login
Farichah Riha
Html web sql database
Html web sql database
AbhishekMondal42
Using database in android
Using database in android
University of Potsdam
Recomendados
Active Record
Active Record
Blazing Cloud
ReactiveMongo - non blocking and asynchronous I/O operations
ReactiveMongo - non blocking and asynchronous I/O operations
David Pichsenmeister
与 PHP 和 Perl 使用 MySQL 数据库
与 PHP 和 Perl 使用 MySQL 数据库
YUCHENG HU
Sequelize
Sequelize
Tarek Raihan
Aprimorando sua Aplicação com Ext JS 4 - BrazilJS
Aprimorando sua Aplicação com Ext JS 4 - BrazilJS
Loiane Groner
Membuat Form Login
Membuat Form Login
Farichah Riha
Html web sql database
Html web sql database
AbhishekMondal42
Using database in android
Using database in android
University of Potsdam
Single Sign-On with Waffle
Single Sign-On with Waffle
Daniel Doubrovkine
TDD in the wild
TDD in the wild
Brainhub
MooseX::Datamodel - Barcelona Perl Workshop Lightning talk
MooseX::Datamodel - Barcelona Perl Workshop Lightning talk
Jose Luis Martínez
WAFFLE: Windows Authentication in Java
WAFFLE: Windows Authentication in Java
Daniel Doubrovkine
Database connectivity with data reader by varun tiwari
Database connectivity with data reader by varun tiwari
Bosco Technical Training Society, Don Bosco Technical School (Aff. GGSIP University, New Delhi)
RegistryModClass
RegistryModClass
John Zamoider
React Spotlight 2018
React Spotlight 2018
Phong Huynh
Rapid postgresql learning, part 1
Rapid postgresql learning, part 1
Ali MasudianPour
Couchdb
Couchdb
Brian Smith
Excel to Use Rest API to communicate with a server
Excel to Use Rest API to communicate with a server
docuboy
Rapid postgresql learning, part 2
Rapid postgresql learning, part 2
Ali MasudianPour
Mule esb object_to_json
Mule esb object_to_json
Davide Rapacciuolo
Muleesbobjecttojson
Muleesbobjecttojson
Davide Rapacciuolo
Store and Process Big Data with Hadoop and Cassandra
Store and Process Big Data with Hadoop and Cassandra
Deependra Ariyadewa
CRUD VB2010
CRUD VB2010
Achmad Sidik
PHP Database Programming Basics -- Northeast PHP
PHP Database Programming Basics -- Northeast PHP
Dave Stokes
Lab2-DB-Mongodb
Lab2-DB-Mongodb
Lilia Sfaxi
Lab1-DB-Cassandra
Lab1-DB-Cassandra
Lilia Sfaxi
Mongo db
Mongo db
Joshua Zabala
Php sessions & cookies
Php sessions & cookies
baabtra.com - No. 1 supplier of quality freshers
Databases with SQLite3.pdf
Databases with SQLite3.pdf
Deepika,Assistant Professor,PES College of Engineering ,Mandya
The Ring programming language version 1.8 book - Part 34 of 202
The Ring programming language version 1.8 book - Part 34 of 202
Mahmoud Samir Fayed
Más contenido relacionado
La actualidad más candente
Single Sign-On with Waffle
Single Sign-On with Waffle
Daniel Doubrovkine
TDD in the wild
TDD in the wild
Brainhub
MooseX::Datamodel - Barcelona Perl Workshop Lightning talk
MooseX::Datamodel - Barcelona Perl Workshop Lightning talk
Jose Luis Martínez
WAFFLE: Windows Authentication in Java
WAFFLE: Windows Authentication in Java
Daniel Doubrovkine
Database connectivity with data reader by varun tiwari
Database connectivity with data reader by varun tiwari
Bosco Technical Training Society, Don Bosco Technical School (Aff. GGSIP University, New Delhi)
RegistryModClass
RegistryModClass
John Zamoider
React Spotlight 2018
React Spotlight 2018
Phong Huynh
Rapid postgresql learning, part 1
Rapid postgresql learning, part 1
Ali MasudianPour
Couchdb
Couchdb
Brian Smith
Excel to Use Rest API to communicate with a server
Excel to Use Rest API to communicate with a server
docuboy
Rapid postgresql learning, part 2
Rapid postgresql learning, part 2
Ali MasudianPour
Mule esb object_to_json
Mule esb object_to_json
Davide Rapacciuolo
Muleesbobjecttojson
Muleesbobjecttojson
Davide Rapacciuolo
Store and Process Big Data with Hadoop and Cassandra
Store and Process Big Data with Hadoop and Cassandra
Deependra Ariyadewa
CRUD VB2010
CRUD VB2010
Achmad Sidik
PHP Database Programming Basics -- Northeast PHP
PHP Database Programming Basics -- Northeast PHP
Dave Stokes
Lab2-DB-Mongodb
Lab2-DB-Mongodb
Lilia Sfaxi
Lab1-DB-Cassandra
Lab1-DB-Cassandra
Lilia Sfaxi
Mongo db
Mongo db
Joshua Zabala
Php sessions & cookies
Php sessions & cookies
baabtra.com - No. 1 supplier of quality freshers
La actualidad más candente
(20)
Single Sign-On with Waffle
Single Sign-On with Waffle
TDD in the wild
TDD in the wild
MooseX::Datamodel - Barcelona Perl Workshop Lightning talk
MooseX::Datamodel - Barcelona Perl Workshop Lightning talk
WAFFLE: Windows Authentication in Java
WAFFLE: Windows Authentication in Java
Database connectivity with data reader by varun tiwari
Database connectivity with data reader by varun tiwari
RegistryModClass
RegistryModClass
React Spotlight 2018
React Spotlight 2018
Rapid postgresql learning, part 1
Rapid postgresql learning, part 1
Couchdb
Couchdb
Excel to Use Rest API to communicate with a server
Excel to Use Rest API to communicate with a server
Rapid postgresql learning, part 2
Rapid postgresql learning, part 2
Mule esb object_to_json
Mule esb object_to_json
Muleesbobjecttojson
Muleesbobjecttojson
Store and Process Big Data with Hadoop and Cassandra
Store and Process Big Data with Hadoop and Cassandra
CRUD VB2010
CRUD VB2010
PHP Database Programming Basics -- Northeast PHP
PHP Database Programming Basics -- Northeast PHP
Lab2-DB-Mongodb
Lab2-DB-Mongodb
Lab1-DB-Cassandra
Lab1-DB-Cassandra
Mongo db
Mongo db
Php sessions & cookies
Php sessions & cookies
Similar a ActiveRecord
Databases with SQLite3.pdf
Databases with SQLite3.pdf
Deepika,Assistant Professor,PES College of Engineering ,Mandya
The Ring programming language version 1.8 book - Part 34 of 202
The Ring programming language version 1.8 book - Part 34 of 202
Mahmoud Samir Fayed
The Ring programming language version 1.10 book - Part 37 of 212
The Ring programming language version 1.10 book - Part 37 of 212
Mahmoud Samir Fayed
Using web2py's DAL in other projects or frameworks
Using web2py's DAL in other projects or frameworks
Bruno Rocha
The Ring programming language version 1.3 book - Part 20 of 88
The Ring programming language version 1.3 book - Part 20 of 88
Mahmoud Samir Fayed
The Ring programming language version 1.6 book - Part 31 of 189
The Ring programming language version 1.6 book - Part 31 of 189
Mahmoud Samir Fayed
The Ring programming language version 1.7 book - Part 32 of 196
The Ring programming language version 1.7 book - Part 32 of 196
Mahmoud Samir Fayed
The Ring programming language version 1.5.1 book - Part 27 of 180
The Ring programming language version 1.5.1 book - Part 27 of 180
Mahmoud Samir Fayed
DEF CON 27 -OMER GULL - select code execution from using sq lite
DEF CON 27 -OMER GULL - select code execution from using sq lite
Felipe Prado
The Ring programming language version 1.5.4 book - Part 29 of 185
The Ring programming language version 1.5.4 book - Part 29 of 185
Mahmoud Samir Fayed
The Ring programming language version 1.4.1 book - Part 8 of 31
The Ring programming language version 1.4.1 book - Part 8 of 31
Mahmoud Samir Fayed
The Ring programming language version 1.5.2 book - Part 28 of 181
The Ring programming language version 1.5.2 book - Part 28 of 181
Mahmoud Samir Fayed
The Ring programming language version 1.9 book - Part 36 of 210
The Ring programming language version 1.9 book - Part 36 of 210
Mahmoud Samir Fayed
The Ring programming language version 1.2 book - Part 18 of 84
The Ring programming language version 1.2 book - Part 18 of 84
Mahmoud Samir Fayed
The Ring programming language version 1.5.3 book - Part 29 of 184
The Ring programming language version 1.5.3 book - Part 29 of 184
Mahmoud Samir Fayed
<x> Rails Web App Security Title
<x> Rails Web App Security Title
'"><x> '"><x>
Session #5 content providers
Session #5 content providers
Vitali Pekelis
ANDROID USING SQLITE DATABASE ADMINISTRATORS ~HMFTJ
ANDROID USING SQLITE DATABASE ADMINISTRATORS ~HMFTJ
LGS, GBHS&IC, University Of South-Asia, TARA-Technologies
3 database-jdbc(1)
3 database-jdbc(1)
hameedkhan2017
Practical Ruby Projects with MongoDB - Ruby Kaigi 2010
Practical Ruby Projects with MongoDB - Ruby Kaigi 2010
Alex Sharp
Similar a ActiveRecord
(20)
Databases with SQLite3.pdf
Databases with SQLite3.pdf
The Ring programming language version 1.8 book - Part 34 of 202
The Ring programming language version 1.8 book - Part 34 of 202
The Ring programming language version 1.10 book - Part 37 of 212
The Ring programming language version 1.10 book - Part 37 of 212
Using web2py's DAL in other projects or frameworks
Using web2py's DAL in other projects or frameworks
The Ring programming language version 1.3 book - Part 20 of 88
The Ring programming language version 1.3 book - Part 20 of 88
The Ring programming language version 1.6 book - Part 31 of 189
The Ring programming language version 1.6 book - Part 31 of 189
The Ring programming language version 1.7 book - Part 32 of 196
The Ring programming language version 1.7 book - Part 32 of 196
The Ring programming language version 1.5.1 book - Part 27 of 180
The Ring programming language version 1.5.1 book - Part 27 of 180
DEF CON 27 -OMER GULL - select code execution from using sq lite
DEF CON 27 -OMER GULL - select code execution from using sq lite
The Ring programming language version 1.5.4 book - Part 29 of 185
The Ring programming language version 1.5.4 book - Part 29 of 185
The Ring programming language version 1.4.1 book - Part 8 of 31
The Ring programming language version 1.4.1 book - Part 8 of 31
The Ring programming language version 1.5.2 book - Part 28 of 181
The Ring programming language version 1.5.2 book - Part 28 of 181
The Ring programming language version 1.9 book - Part 36 of 210
The Ring programming language version 1.9 book - Part 36 of 210
The Ring programming language version 1.2 book - Part 18 of 84
The Ring programming language version 1.2 book - Part 18 of 84
The Ring programming language version 1.5.3 book - Part 29 of 184
The Ring programming language version 1.5.3 book - Part 29 of 184
<x> Rails Web App Security Title
<x> Rails Web App Security Title
Session #5 content providers
Session #5 content providers
ANDROID USING SQLITE DATABASE ADMINISTRATORS ~HMFTJ
ANDROID USING SQLITE DATABASE ADMINISTRATORS ~HMFTJ
3 database-jdbc(1)
3 database-jdbc(1)
Practical Ruby Projects with MongoDB - Ruby Kaigi 2010
Practical Ruby Projects with MongoDB - Ruby Kaigi 2010
Más de Blazing Cloud
Rails ORM De-mystifying Active Record has_many
Rails ORM De-mystifying Active Record has_many
Blazing Cloud
Active Record Introduction - 3
Active Record Introduction - 3
Blazing Cloud
Rails Class Intro - 1
Rails Class Intro - 1
Blazing Cloud
Your first rails app - 2
Your first rails app - 2
Blazing Cloud
RSpec Quick Reference
RSpec Quick Reference
Blazing Cloud
Extending rails
Extending rails
Blazing Cloud
2day Ruby Class Intro
2day Ruby Class Intro
Blazing Cloud
Mobile Lean UX
Mobile Lean UX
Blazing Cloud
Interactive Graphics
Interactive Graphics
Blazing Cloud
Interactive Graphics w/ Javascript, HTML5 and CSS3
Interactive Graphics w/ Javascript, HTML5 and CSS3
Blazing Cloud
Form helpers
Form helpers
Blazing Cloud
Intro to Ruby (and RSpec)
Intro to Ruby (and RSpec)
Blazing Cloud
What you don't know (yet)
What you don't know (yet)
Blazing Cloud
Introduction to Rails
Introduction to Rails
Blazing Cloud
Ruby on Rails Class intro
Ruby on Rails Class intro
Blazing Cloud
Ruby on rails toolbox
Ruby on rails toolbox
Blazing Cloud
Routes Controllers
Routes Controllers
Blazing Cloud
Test Driven Development
Test Driven Development
Blazing Cloud
Enumerables
Enumerables
Blazing Cloud
Reg EX
Reg EX
Blazing Cloud
Más de Blazing Cloud
(20)
Rails ORM De-mystifying Active Record has_many
Rails ORM De-mystifying Active Record has_many
Active Record Introduction - 3
Active Record Introduction - 3
Rails Class Intro - 1
Rails Class Intro - 1
Your first rails app - 2
Your first rails app - 2
RSpec Quick Reference
RSpec Quick Reference
Extending rails
Extending rails
2day Ruby Class Intro
2day Ruby Class Intro
Mobile Lean UX
Mobile Lean UX
Interactive Graphics
Interactive Graphics
Interactive Graphics w/ Javascript, HTML5 and CSS3
Interactive Graphics w/ Javascript, HTML5 and CSS3
Form helpers
Form helpers
Intro to Ruby (and RSpec)
Intro to Ruby (and RSpec)
What you don't know (yet)
What you don't know (yet)
Introduction to Rails
Introduction to Rails
Ruby on Rails Class intro
Ruby on Rails Class intro
Ruby on rails toolbox
Ruby on rails toolbox
Routes Controllers
Routes Controllers
Test Driven Development
Test Driven Development
Enumerables
Enumerables
Reg EX
Reg EX
Último
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
apidays
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Zilliz
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
DianaGray10
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
Martijn de Jong
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Juan lago vázquez
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
The Digital Insurer
presentation ICT roal in 21st century education
presentation ICT roal in 21st century education
jfdjdjcjdnsjd
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
MadyBayot
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source Milvus
Zilliz
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
Overkill Security
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
apidays
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
MIND CTI
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
Dropbox
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
apidays
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
apidays
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
sammart93
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
Anna Loughnan Colquhoun
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
Nanddeep Nachan
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
Khem
Último
(20)
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
presentation ICT roal in 21st century education
presentation ICT roal in 21st century education
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source Milvus
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
ActiveRecord
1.
ACTIVERECORD
Rails 3
2.
MVC
3.
MODEL CLASS in app/models/person.rb class
Message < ActiveRecord::Base end
4.
EVERY MODEL
HAS A CORRESPONDING DATABASE TABLE
5.
MVC
6.
HOW DID WE
GET A DATABASE TABLE?
7.
RUBY-DRIVEN SCHEMA •
scaffold generates db/migrate/20110131021702_create_people.rb • rake db:migrate runs the migration, creates the table • Watch what we did before in slow motion...
8.
DEMO
9.
RAILS CONSOLE >> ActiveRecord::Base.logger
= Logger.new(STDOUT)
10.
RAILS CONSOLE >> ActiveRecord::Base.logger
= Logger.new(STDOUT) >> Person.first SQL (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' Person Load (1.0ms) SELECT "people".* FROM "people" LIMIT 1 => #<Person id: 2, first_name: "Wilma", last_name: "Flinstone", created_at: "2010-10-19 19:59:36", updated_at: "2010-10-19 19:59:36">
11.
RAILS CONSOLE >> ActiveRecord::Base.logger
= Logger.new(STDOUT) >> Person.first SQL (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' Person Load (1.0ms) SELECT "people".* FROM "people" LIMIT 1 => #<Person id: 2, first_name: "Wilma", last_name: "Flinstone", created_at: "2010-10-19 19:59:36", updated_at: "2010-10-19 19:59:36"> find "people" table name
12.
RAILS CONSOLE >> ActiveRecord::Base.logger
= Logger.new(STDOUT) >> Person.first SQL (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' Person Load (1.0ms) SELECT "people".* FROM "people" LIMIT 1 => #<Person id: 2, first_name: "Wilma", last_name: "Flinstone", created_at: "2010-10-19 19:59:36", updated_at: "2010-10-19 19:59:36"> find first row in "people table"
13.
DYNAMIC GETTERS AND
SETTERS >> bret = Person.new >> bret.first_name = "Bret" >> bret.last_name = "Smith" >> bret.first_name "Bret" >> bret.xxx NoMethodError
14.
MORE ACTIVE RECORD •
save to database as needed • automatically handle update/insert • dynamic queries
15.
SQL INJECTION
16.
SAFE FROM SQL
INJECTION class User < ActiveRecord::Base def self.authenticate_unsafely(user_name, password) find(:first, :conditions => "user_name = '#{user_name}' AND password = '#{password}'") end def self.authenticate_safely(user_name, password) find(:first, :conditions => [ "user_name = ? AND password = ?", user_name, password ]) end def self.authenticate_safely_simply(user_name, password) find(:first, :conditions => { :user_name => user_name, :password => password }) end
17.
QUESTIONS?
Notas del editor
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
Descargar ahora