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

Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
🐬 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
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
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
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfhans926745
 
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
 
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
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
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
 
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
 
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
 
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
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL 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...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
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
 

Último (20)

Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
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
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
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...
 
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
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
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
 
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
 
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
 
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...
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL 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...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 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

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