pelle / oauth-plugin

Rails plugin for OAuth
http://stakeventures.com/articles/2009/07/21/consuming-oauth-intelligently-in-rails
MIT License
716 stars 216 forks source link

MongoDB Collections not being created #112

Closed RickTheHat closed 12 years ago

RickTheHat commented 12 years ago

I'm following along with this tutorial http://unhandledexpression.com/2011/06/02/rails-and-oauth-plugin-part-1-the-provider/ and am using MongoDB instead.

When I get to the "rails g oauth_provider oauth" area, it looks like all the models, views and controllers are being created and I also see a message that says "invoke mongoid" but the Collections are not being created.

I also don't see any db migration file which makes sense since I'm using Mongo so does anyone have a clue here? I can't seem to find anyone using MongoDB to do oauth2 stuff so not a lot of help so far, even on stackoverflow.com

Below is my Gemfile, maybe this is wrong or too new?

source 'https://rubygems.org' gem 'rails', '3.2.2' group :assets do gem 'sass-rails', '~> 3.2.3' gem 'coffee-rails', '~> 3.2.1' gem 'uglifier', '>= 1.0.3' end gem 'jquery-rails' gem "rspec-rails", ">= 2.9.0.rc2", :group => [:development, :test] gem "database_cleaner", ">= 0.7.1", :group => :test gem "mongoid-rspec", ">= 1.4.4", :group => :test gem "factory_girl_rails", ">= 2.0.0.rc", :group => [:development, :test] gem "email_spec", ">= 1.2.1", :group => :test gem "bson_ext", ">= 1.6.1" gem "mongoid", ">= 2.4.6" gem "devise", ">= 2.1.0.rc"

gem "oauth-plugin", ">= 0.4.0.rc2"

RickTheHat commented 12 years ago

btw - i'm using mongodb version 2.0.1 and when I run the tutorial from above using sqlite, it works properly.