SlideShare uma empresa Scribd logo
1 de 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勘所

Mais conteúdo relacionado

Mais procurados

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
 

Mais procurados (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
 

Destaque

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
 

Destaque (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
 

Último

Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdfChristopherTHyatt
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
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 Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
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
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
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
 
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...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
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
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
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
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
 
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
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 

Último (20)

Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdf
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
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 Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
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
 
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...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...
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
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
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
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...
 
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
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 

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

Notas do Editor

  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