haxuan lac
2013-Apr-10 15:31 UTC
Help me the error after replace sqlite3 by using MongoDb and MongoId
I want use MongoDB same as database of Project. I delete gem "sqlite3" and copied 2 gem: gem "mongoid", "~> 3.0.0" gem ''bson_ext'' then had error : in `block in replace_gem'': Please install the sqlite3 adapter: `gem install activerecord-sqlite3-adapter` (sqlite3 is not part of the bundle. Add it to Gemfile.) (LoadError) and if I copy gem sqlite3 the program ran with MongoDb same as database Plase instruct for me this problem and how to do if I want only MongoDB same as Database. Thanks... -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
Norbert Melzer
2013-Apr-10 16:14 UTC
Re: Help me the error after replace sqlite3 by using MongoDb and MongoId
It isn''t enough just to change the gems, you also have to alter the database configuration to be found at config/database.yml. Please check Mongo manual for further details. Am 10.04.2013 17:31 schrieb "haxuan lac" <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>:> I want use MongoDB same as database of Project. > I delete gem "sqlite3" and copied 2 gem: > gem "mongoid", "~> 3.0.0" > gem ''bson_ext'' > then had error : > in `block in replace_gem'': Please install the sqlite3 adapter: `gem > install activerecord-sqlite3-adapter` (sqlite3 is not part of the > bundle. Add it to Gemfile.) (LoadError) > and if I copy gem sqlite3 the program ran with MongoDb same as database > Plase instruct for me this problem and how to do if I want only MongoDB > same as Database. > Thanks... > > -- > Posted via http://www.ruby-forum.com/. > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit https://groups.google.com/groups/opt_out. > > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
haxuan lac
2013-Apr-10 17:41 UTC
Re: Help me the error after replace sqlite3 by using MongoDb and MongoId
Thanks Norbert Melzer I read railscast 238(mongoid) If I use command line: rails g mongoid:config then in my project have 2 DB :sqlite3+mongoDB And I see data after insert then save in MongoDB If I using both sqlite3+mongoDB above ,please tell me about my program have error with process data after? thanks. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.