ruby on railsmongodb
@lucasrenan
http://nudesign.com.br
traidor do movimento
matz
instalação
dhh
ModelViewController
$ gem installrails
~ 45 milbibliotecas
frameworkmodular
# application.rb# Pick the frameworks you want:# require "active_record/railtie"require "action_controller/railtie"require...
persistênciapoliglota
estruturaflexível
class Artist  include Mongoid::Document  field :name, type: String  embeds_many :instrumentsendclass Instrument  include M...
toby = Artist.new(name: "Toby Morse")toby.save!
marky = Artist.where(name: "MarkyRamone").firstmarky.instruments.create(name: "Drums")
livecoding
obrigado:)
Ruby on Rails + MongoDB - FATEC Sorocaba
Ruby on Rails + MongoDB - FATEC Sorocaba
Ruby on Rails + MongoDB - FATEC Sorocaba
Ruby on Rails + MongoDB - FATEC Sorocaba
Ruby on Rails + MongoDB - FATEC Sorocaba
Ruby on Rails + MongoDB - FATEC Sorocaba
Ruby on Rails + MongoDB - FATEC Sorocaba
Ruby on Rails + MongoDB - FATEC Sorocaba
Ruby on Rails + MongoDB - FATEC Sorocaba
Ruby on Rails + MongoDB - FATEC Sorocaba
Ruby on Rails + MongoDB - FATEC Sorocaba
Ruby on Rails + MongoDB - FATEC Sorocaba
Ruby on Rails + MongoDB - FATEC Sorocaba
Ruby on Rails + MongoDB - FATEC Sorocaba
Upcoming SlideShare
Loading in …5
×

Ruby on Rails + MongoDB - FATEC Sorocaba

577 views
477 views

Published on

Ruby on Rails + MongoDB - FATEC Sorocaba - 10/10/2012

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
577
On SlideShare
0
From Embeds
0
Number of Embeds
5
Actions
Shares
0
Downloads
4
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Ruby on Rails + MongoDB - FATEC Sorocaba

  1. 1. ruby on railsmongodb
  2. 2. @lucasrenan
  3. 3. http://nudesign.com.br
  4. 4. traidor do movimento
  5. 5. matz
  6. 6. instalação
  7. 7. dhh
  8. 8. ModelViewController
  9. 9. $ gem installrails
  10. 10. ~ 45 milbibliotecas
  11. 11. frameworkmodular
  12. 12. # application.rb# Pick the frameworks you want:# require "active_record/railtie"require "action_controller/railtie"require "action_mailer/railtie"require "active_resource/railtie"require "sprockets/railtie"# require "rails/test_unit/railtie"
  13. 13. persistênciapoliglota
  14. 14. estruturaflexível
  15. 15. class Artist include Mongoid::Document field :name, type: String embeds_many :instrumentsendclass Instrument include Mongoid::Document field :name, type: String embedded_in :artistend
  16. 16. toby = Artist.new(name: "Toby Morse")toby.save!
  17. 17. marky = Artist.where(name: "MarkyRamone").firstmarky.instruments.create(name: "Drums")
  18. 18. livecoding
  19. 19. obrigado:)

×