Download - Ruby on Rails + MongoDB - FATEC Sorocaba
![Page 1: Ruby on Rails + MongoDB - FATEC Sorocaba](https://reader033.vdocuments.net/reader033/viewer/2022051412/54875349b47959190d8b53bc/html5/thumbnails/1.jpg)
ruby on railsmongodb
![Page 2: Ruby on Rails + MongoDB - FATEC Sorocaba](https://reader033.vdocuments.net/reader033/viewer/2022051412/54875349b47959190d8b53bc/html5/thumbnails/2.jpg)
@lucasrenan
![Page 4: Ruby on Rails + MongoDB - FATEC Sorocaba](https://reader033.vdocuments.net/reader033/viewer/2022051412/54875349b47959190d8b53bc/html5/thumbnails/4.jpg)
traidor do movimento
![Page 5: Ruby on Rails + MongoDB - FATEC Sorocaba](https://reader033.vdocuments.net/reader033/viewer/2022051412/54875349b47959190d8b53bc/html5/thumbnails/5.jpg)
![Page 6: Ruby on Rails + MongoDB - FATEC Sorocaba](https://reader033.vdocuments.net/reader033/viewer/2022051412/54875349b47959190d8b53bc/html5/thumbnails/6.jpg)
matz
![Page 7: Ruby on Rails + MongoDB - FATEC Sorocaba](https://reader033.vdocuments.net/reader033/viewer/2022051412/54875349b47959190d8b53bc/html5/thumbnails/7.jpg)
instalação
![Page 8: Ruby on Rails + MongoDB - FATEC Sorocaba](https://reader033.vdocuments.net/reader033/viewer/2022051412/54875349b47959190d8b53bc/html5/thumbnails/8.jpg)
![Page 9: Ruby on Rails + MongoDB - FATEC Sorocaba](https://reader033.vdocuments.net/reader033/viewer/2022051412/54875349b47959190d8b53bc/html5/thumbnails/9.jpg)
![Page 10: Ruby on Rails + MongoDB - FATEC Sorocaba](https://reader033.vdocuments.net/reader033/viewer/2022051412/54875349b47959190d8b53bc/html5/thumbnails/10.jpg)
dhh
![Page 11: Ruby on Rails + MongoDB - FATEC Sorocaba](https://reader033.vdocuments.net/reader033/viewer/2022051412/54875349b47959190d8b53bc/html5/thumbnails/11.jpg)
Model View Controller
![Page 12: Ruby on Rails + MongoDB - FATEC Sorocaba](https://reader033.vdocuments.net/reader033/viewer/2022051412/54875349b47959190d8b53bc/html5/thumbnails/12.jpg)
$ gem install rails
![Page 13: Ruby on Rails + MongoDB - FATEC Sorocaba](https://reader033.vdocuments.net/reader033/viewer/2022051412/54875349b47959190d8b53bc/html5/thumbnails/13.jpg)
![Page 14: Ruby on Rails + MongoDB - FATEC Sorocaba](https://reader033.vdocuments.net/reader033/viewer/2022051412/54875349b47959190d8b53bc/html5/thumbnails/14.jpg)
~ 45 milbibliotecas
![Page 15: Ruby on Rails + MongoDB - FATEC Sorocaba](https://reader033.vdocuments.net/reader033/viewer/2022051412/54875349b47959190d8b53bc/html5/thumbnails/15.jpg)
![Page 16: Ruby on Rails + MongoDB - FATEC Sorocaba](https://reader033.vdocuments.net/reader033/viewer/2022051412/54875349b47959190d8b53bc/html5/thumbnails/16.jpg)
![Page 17: Ruby on Rails + MongoDB - FATEC Sorocaba](https://reader033.vdocuments.net/reader033/viewer/2022051412/54875349b47959190d8b53bc/html5/thumbnails/17.jpg)
frameworkmodular
![Page 18: Ruby on Rails + MongoDB - FATEC Sorocaba](https://reader033.vdocuments.net/reader033/viewer/2022051412/54875349b47959190d8b53bc/html5/thumbnails/18.jpg)
# 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"
![Page 19: Ruby on Rails + MongoDB - FATEC Sorocaba](https://reader033.vdocuments.net/reader033/viewer/2022051412/54875349b47959190d8b53bc/html5/thumbnails/19.jpg)
persistênciapoliglota
![Page 20: Ruby on Rails + MongoDB - FATEC Sorocaba](https://reader033.vdocuments.net/reader033/viewer/2022051412/54875349b47959190d8b53bc/html5/thumbnails/20.jpg)
![Page 21: Ruby on Rails + MongoDB - FATEC Sorocaba](https://reader033.vdocuments.net/reader033/viewer/2022051412/54875349b47959190d8b53bc/html5/thumbnails/21.jpg)
![Page 22: Ruby on Rails + MongoDB - FATEC Sorocaba](https://reader033.vdocuments.net/reader033/viewer/2022051412/54875349b47959190d8b53bc/html5/thumbnails/22.jpg)
estruturaflexível
![Page 23: Ruby on Rails + MongoDB - FATEC Sorocaba](https://reader033.vdocuments.net/reader033/viewer/2022051412/54875349b47959190d8b53bc/html5/thumbnails/23.jpg)
![Page 24: Ruby on Rails + MongoDB - FATEC Sorocaba](https://reader033.vdocuments.net/reader033/viewer/2022051412/54875349b47959190d8b53bc/html5/thumbnails/24.jpg)
class Artist include Mongoid::Document field :name, type: String embeds_many :instrumentsend
class Instrument include Mongoid::Document field :name, type: String embedded_in :artistend
![Page 25: Ruby on Rails + MongoDB - FATEC Sorocaba](https://reader033.vdocuments.net/reader033/viewer/2022051412/54875349b47959190d8b53bc/html5/thumbnails/25.jpg)
toby = Artist.new(name: "Toby Morse")toby.save!
![Page 26: Ruby on Rails + MongoDB - FATEC Sorocaba](https://reader033.vdocuments.net/reader033/viewer/2022051412/54875349b47959190d8b53bc/html5/thumbnails/26.jpg)
marky = Artist.where(name: "Marky Ramone").firstmarky.instruments.create(name: "Drums")
![Page 27: Ruby on Rails + MongoDB - FATEC Sorocaba](https://reader033.vdocuments.net/reader033/viewer/2022051412/54875349b47959190d8b53bc/html5/thumbnails/27.jpg)
livecoding
![Page 28: Ruby on Rails + MongoDB - FATEC Sorocaba](https://reader033.vdocuments.net/reader033/viewer/2022051412/54875349b47959190d8b53bc/html5/thumbnails/28.jpg)
![Page 29: Ruby on Rails + MongoDB - FATEC Sorocaba](https://reader033.vdocuments.net/reader033/viewer/2022051412/54875349b47959190d8b53bc/html5/thumbnails/29.jpg)
![Page 30: Ruby on Rails + MongoDB - FATEC Sorocaba](https://reader033.vdocuments.net/reader033/viewer/2022051412/54875349b47959190d8b53bc/html5/thumbnails/30.jpg)
![Page 31: Ruby on Rails + MongoDB - FATEC Sorocaba](https://reader033.vdocuments.net/reader033/viewer/2022051412/54875349b47959190d8b53bc/html5/thumbnails/31.jpg)
![Page 32: Ruby on Rails + MongoDB - FATEC Sorocaba](https://reader033.vdocuments.net/reader033/viewer/2022051412/54875349b47959190d8b53bc/html5/thumbnails/32.jpg)
![Page 33: Ruby on Rails + MongoDB - FATEC Sorocaba](https://reader033.vdocuments.net/reader033/viewer/2022051412/54875349b47959190d8b53bc/html5/thumbnails/33.jpg)
obrigado:)