Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Ruby on Rails + MongoDB - FATEC Sorocaba

lucas renan
October 10, 2012

Ruby on Rails + MongoDB - FATEC Sorocaba

Ruby on Rails + MongoDB - FATEC Sorocaba

lucas renan

October 10, 2012
Tweet

More Decks by lucas renan

Other Decks in Technology

Transcript

  1. dhh

  2. # 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"
  3. class Artist include Mongoid::Document field :name, type: String embeds_many :instruments

    end class Instrument include Mongoid::Document field :name, type: String embedded_in :artist end