SlideShare une entreprise Scribd logo
1  sur  34
source 'http://rubygems.org'

gem 'rails', '3.0.7'

# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'

gem 'sqlite3'

group :development, :test do
 gem 'rspec-rails'
end
$ bundle install
describe Book do
 describe :create do
  it "Book                     " do
    Book.count.should == 0
    Book.create({ title: "RBC ", description: "   ", read: false})
    Book.count.should == 1
  end
end
Rails3勘所
Rails3勘所
Rails3勘所
Rails3勘所
Rails3勘所
Rails3勘所
Rails3勘所
Rails3勘所
Rails3勘所
Rails3勘所
Rails3勘所

Contenu connexe

Tendances

Rails 3.1 Awesomeness - what's new
Rails 3.1 Awesomeness - what's newRails 3.1 Awesomeness - what's new
Rails 3.1 Awesomeness - what's newDynamic Clarity
 
CouchDB: A NoSQL database
CouchDB: A NoSQL databaseCouchDB: A NoSQL database
CouchDB: A NoSQL databaseRubyc Slides
 
Bundler is the Best
Bundler is the BestBundler is the Best
Bundler is the Bestdead_arm
 
Your first sinatra app
Your first sinatra appYour first sinatra app
Your first sinatra appRubyc Slides
 
xml-motor ~ What,Why,How
xml-motor ~ What,Why,Howxml-motor ~ What,Why,How
xml-motor ~ What,Why,HowAbhishek Kumar
 
CoffeeScript, An Introduction for Nodejs developers
CoffeeScript, An Introduction for Nodejs developersCoffeeScript, An Introduction for Nodejs developers
CoffeeScript, An Introduction for Nodejs developersMehdi Valikhani
 
Introduction to chef framework
Introduction to chef frameworkIntroduction to chef framework
Introduction to chef frameworkmorgoth
 
Drupal + selenium
Drupal + seleniumDrupal + selenium
Drupal + seleniumhernanibf
 
Mojolicious: what works and what doesn't
Mojolicious: what works and what doesn'tMojolicious: what works and what doesn't
Mojolicious: what works and what doesn'tCosimo Streppone
 
Reasons To Love Ruby
Reasons To Love RubyReasons To Love Ruby
Reasons To Love RubyBen Scheirman
 
Custom Non-RDS Multi-AZ Mysql Replication
Custom Non-RDS Multi-AZ Mysql ReplicationCustom Non-RDS Multi-AZ Mysql Replication
Custom Non-RDS Multi-AZ Mysql ReplicationMichael H. Oshita
 
Ember background basics
Ember background basicsEmber background basics
Ember background basicsPhilipp Fehre
 
Generate everything!
Generate everything!Generate everything!
Generate everything!Razvan Pavel
 
Advanced JavaScript build pipelines using Gulp.js
Advanced JavaScript build pipelines using Gulp.jsAdvanced JavaScript build pipelines using Gulp.js
Advanced JavaScript build pipelines using Gulp.jsStefan Baumgartner
 
SINATRA + HAML + TWITTER
SINATRA + HAML + TWITTERSINATRA + HAML + TWITTER
SINATRA + HAML + TWITTERElber Ribeiro
 
Plumbin Pipelines - A Gulp.js workshop
Plumbin Pipelines - A Gulp.js workshopPlumbin Pipelines - A Gulp.js workshop
Plumbin Pipelines - A Gulp.js workshopStefan Baumgartner
 

Tendances (20)

Rails 3.1 Awesomeness - what's new
Rails 3.1 Awesomeness - what's newRails 3.1 Awesomeness - what's new
Rails 3.1 Awesomeness - what's new
 
CouchDB: A NoSQL database
CouchDB: A NoSQL databaseCouchDB: A NoSQL database
CouchDB: A NoSQL database
 
Bundler is the Best
Bundler is the BestBundler is the Best
Bundler is the Best
 
Babushka
BabushkaBabushka
Babushka
 
Your first sinatra app
Your first sinatra appYour first sinatra app
Your first sinatra app
 
Chef solo the beginning
Chef solo the beginning Chef solo the beginning
Chef solo the beginning
 
xml-motor ~ What,Why,How
xml-motor ~ What,Why,Howxml-motor ~ What,Why,How
xml-motor ~ What,Why,How
 
CoffeeScript, An Introduction for Nodejs developers
CoffeeScript, An Introduction for Nodejs developersCoffeeScript, An Introduction for Nodejs developers
CoffeeScript, An Introduction for Nodejs developers
 
Introduction to chef framework
Introduction to chef frameworkIntroduction to chef framework
Introduction to chef framework
 
Drupal + selenium
Drupal + seleniumDrupal + selenium
Drupal + selenium
 
Mojolicious: what works and what doesn't
Mojolicious: what works and what doesn'tMojolicious: what works and what doesn't
Mojolicious: what works and what doesn't
 
Reasons To Love Ruby
Reasons To Love RubyReasons To Love Ruby
Reasons To Love Ruby
 
Custom Non-RDS Multi-AZ Mysql Replication
Custom Non-RDS Multi-AZ Mysql ReplicationCustom Non-RDS Multi-AZ Mysql Replication
Custom Non-RDS Multi-AZ Mysql Replication
 
Ember background basics
Ember background basicsEmber background basics
Ember background basics
 
Bower introduction
Bower introductionBower introduction
Bower introduction
 
Generate everything!
Generate everything!Generate everything!
Generate everything!
 
Vagrant
VagrantVagrant
Vagrant
 
Advanced JavaScript build pipelines using Gulp.js
Advanced JavaScript build pipelines using Gulp.jsAdvanced JavaScript build pipelines using Gulp.js
Advanced JavaScript build pipelines using Gulp.js
 
SINATRA + HAML + TWITTER
SINATRA + HAML + TWITTERSINATRA + HAML + TWITTER
SINATRA + HAML + TWITTER
 
Plumbin Pipelines - A Gulp.js workshop
Plumbin Pipelines - A Gulp.js workshopPlumbin Pipelines - A Gulp.js workshop
Plumbin Pipelines - A Gulp.js workshop
 

En vedette

North Eastern Arms
North Eastern ArmsNorth Eastern Arms
North Eastern ArmsUK-Resource
 
2009.08.20 Fisaセミナー
2009.08.20 Fisaセミナー2009.08.20 Fisaセミナー
2009.08.20 FisaセミナーHiroshi Nakao
 
Libra meter meter buddy handbook
Libra meter   meter buddy handbookLibra meter   meter buddy handbook
Libra meter meter buddy handbookHilda Bernabé
 
無料で作るFlex/AIR
無料で作るFlex/AIR無料で作るFlex/AIR
無料で作るFlex/AIRHiroshi Nakao
 
UKR Capabilities Statement
UKR Capabilities StatementUKR Capabilities Statement
UKR Capabilities StatementUK-Resource
 
Cisco Collaboration Summit 2012 Keynote
Cisco Collaboration Summit 2012 KeynoteCisco Collaboration Summit 2012 Keynote
Cisco Collaboration Summit 2012 KeynoteLynn Lucas
 
2014.06.13 - Cloud Brokerage, Pourquoi, Comment ? - IBM #CloudAccelerate - L...
2014.06.13 -  Cloud Brokerage, Pourquoi, Comment ? - IBM #CloudAccelerate - L...2014.06.13 -  Cloud Brokerage, Pourquoi, Comment ? - IBM #CloudAccelerate - L...
2014.06.13 - Cloud Brokerage, Pourquoi, Comment ? - IBM #CloudAccelerate - L...PartnerWin - #SocialSelling StarterPacks
 
Adecuacion curricular-a-partir-de-las-necesidades-educativas-especiales
Adecuacion curricular-a-partir-de-las-necesidades-educativas-especialesAdecuacion curricular-a-partir-de-las-necesidades-educativas-especiales
Adecuacion curricular-a-partir-de-las-necesidades-educativas-especialesHilda Bernabé
 
Simce 2° 4° básicos - slideshare
Simce 2°   4° básicos - slideshareSimce 2°   4° básicos - slideshare
Simce 2° 4° básicos - slidesharejaime Carvajal
 
UKR Sugar Refining
UKR Sugar RefiningUKR Sugar Refining
UKR Sugar RefiningUK-Resource
 

En vedette (18)

North Eastern Arms
North Eastern ArmsNorth Eastern Arms
North Eastern Arms
 
2009.08.20 Fisaセミナー
2009.08.20 Fisaセミナー2009.08.20 Fisaセミナー
2009.08.20 Fisaセミナー
 
恋するJenkins
恋するJenkins恋するJenkins
恋するJenkins
 
Libra meter meter buddy handbook
Libra meter   meter buddy handbookLibra meter   meter buddy handbook
Libra meter meter buddy handbook
 
無料で作るFlex/AIR
無料で作るFlex/AIR無料で作るFlex/AIR
無料で作るFlex/AIR
 
Autismo
AutismoAutismo
Autismo
 
UKR Capabilities Statement
UKR Capabilities StatementUKR Capabilities Statement
UKR Capabilities Statement
 
Emat689 June09
Emat689 June09Emat689 June09
Emat689 June09
 
M U S E
M U S EM U S E
M U S E
 
Bluetooth
BluetoothBluetooth
Bluetooth
 
Malaysia Boleh
Malaysia BolehMalaysia Boleh
Malaysia Boleh
 
Actividad 10-4
Actividad 10-4Actividad 10-4
Actividad 10-4
 
Cisco Collaboration Summit 2012 Keynote
Cisco Collaboration Summit 2012 KeynoteCisco Collaboration Summit 2012 Keynote
Cisco Collaboration Summit 2012 Keynote
 
2014.06.13 - Cloud Brokerage, Pourquoi, Comment ? - IBM #CloudAccelerate - L...
2014.06.13 -  Cloud Brokerage, Pourquoi, Comment ? - IBM #CloudAccelerate - L...2014.06.13 -  Cloud Brokerage, Pourquoi, Comment ? - IBM #CloudAccelerate - L...
2014.06.13 - Cloud Brokerage, Pourquoi, Comment ? - IBM #CloudAccelerate - L...
 
Adecuacion curricular-a-partir-de-las-necesidades-educativas-especiales
Adecuacion curricular-a-partir-de-las-necesidades-educativas-especialesAdecuacion curricular-a-partir-de-las-necesidades-educativas-especiales
Adecuacion curricular-a-partir-de-las-necesidades-educativas-especiales
 
The Dust Bowl
The Dust BowlThe Dust Bowl
The Dust Bowl
 
Simce 2° 4° básicos - slideshare
Simce 2°   4° básicos - slideshareSimce 2°   4° básicos - slideshare
Simce 2° 4° básicos - slideshare
 
UKR Sugar Refining
UKR Sugar RefiningUKR Sugar Refining
UKR Sugar Refining
 

Dernier

Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...gurkirankumar98700
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
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 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 

Dernier (20)

Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
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 2024The 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
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 

Rails3勘所

  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18. source 'http://rubygems.org' gem 'rails', '3.0.7' # Bundle edge Rails instead: # gem 'rails', :git => 'git://github.com/rails/rails.git' gem 'sqlite3' group :development, :test do gem 'rspec-rails' end
  • 20.
  • 21.
  • 22.
  • 23. describe Book do describe :create do it "Book " do Book.count.should == 0 Book.create({ title: "RBC ", description: " ", read: false}) Book.count.should == 1 end end

Notes de l'éditeur

  1. \n
  2. \n
  3. \n
  4. \n
  5. \n
  6. \n
  7. \n
  8. 分散バージョン管理システム\nWEBベースのプロジェクト管理システム\n
  9. 分散バージョン管理システム\nWEBベースのプロジェクト管理システム\n
  10. \n
  11. フルスタック…全部入り\n\n
  12. \n
  13. \n
  14. \n
  15. \n\n
  16. \n
  17. \n\n
  18. \n\n
  19. 分散バージョン管理システム\nWEBベースのプロジェクト管理システム\n
  20. \n
  21. \n\n
  22. \n\n
  23. \n\n
  24. \n\n
  25. \n
  26. \n\n
  27. \n\n
  28. \n
  29. \n\n
  30. まだまだRails3のことについて記載された本は少ない\n
  31. \n
  32. 電子書籍\n
  33. \n
  34. ぜひRuby開発サーバの検討をよろしくお願いいたします\n