search for: blogpost_spec

Displaying 1 result from an estimated 1 matches for "blogpost_spec".

2012 Jan 22
3
Using Mongoid with ActiveRecord
...and-forth between mongoid and activerecord. For example, if I want to generate an ActiveRecord model after using mongoid, rails automatically defaults to the Mongoid gem. > rails g model Blogpost invoke mongoid create app/models/blogpost.rb invoke rspec create spec/models/blogpost_spec.rb How would I get rails to use ActiveRecord instead, and vice versa? Thanks in advance Mike -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd...