Soumettre la recherche
Mettre en ligne
ActiveRecord
•
Télécharger en tant que KEY, PDF
•
0 j'aime
•
438 vues
Blazing Cloud
Suivre
An overview of ActiveRecord (Rails 3)
Lire moins
Lire la suite
Technologie
Signaler
Partager
Signaler
Partager
1 sur 17
Télécharger maintenant
Recommandé
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
Recommandé
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
Contenu connexe
Tendances
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
Tendances
(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
Similaire à 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
Similaire à 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
Plus 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
Plus 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
Dernier
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
Rafal Los
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
ThousandEyes
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
Michael W. Hawkins
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
naman860154
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
Scott Keck-Warren
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
Delhi Call girls
Slack Application Development 101 Slides
Slack Application Development 101 Slides
praypatel2
🐬 The future of MySQL is Postgres 🐘
🐬 The future of MySQL is Postgres 🐘
RTylerCroy
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
2toLead Limited
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
Safe Software
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
Delhi Call girls
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
Sinan KOZAK
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
Paola De la Torre
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Drew Madelung
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
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
Puma Security, LLC
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
Delhi Call girls
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
BookNet Canada
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
Anna Loughnan Colquhoun
Dernier
(20)
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
Slack Application Development 101 Slides
Slack Application Development 101 Slides
🐬 The future of MySQL is Postgres 🐘
🐬 The future of MySQL is Postgres 🐘
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
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?
Notes de l'éditeur
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
Télécharger maintenant