KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Generated Rails App w/out Active Record Added appropriate gems for Mongoid (Mongodb & Mongoid) Generated the mongoid.yml file in config/ with rails support Created a friend model and user controller with typical CRUD routes Everything works except when I try to do a mass assignment I get: "undefined method `attr_accesible' for Friend:Class" Model, friend.rb: class Friend include Mongoid::Document field :first_name, :type => String field :last_name, :type => String field :adjective, :type => String attr_accessible :first_name, :last_name, :adjective end development: sessions: default: database: first_development hosts: - localhost:27017 options: options: test: sessions: default: database: first_test hosts: - localhost:27017 options: consistency: :strong max_retries: 1 retry_interval: 0 Thoughts?
Tags (comma-separated)
Save Edits
Cancel