add.create new project.
command:
rails new mongodb_enquete --skip-active-record
mod.add libraries to gem file.
mod.install libraries.
command:
bundle install
add.create config file for mongoid.
command:
rails g mongoid:config
add.create new models.
command:
rails g scaffold enquete name:string
rails g scaffold question body:object type:string choices:array required_column:boolean
rails g scaffold answer user_id:integer enquete_id:string
mod.modify forms for enquetes.