Created
July 4, 2012 14:11
-
-
Save Bijendra/3047566 to your computer and use it in GitHub Desktop.
rails g model modelname gives the error. there is no mongoid.yml file i have created. i was able to create models using this command. One reason i could see that i created config/mongoid.yml file and then deleted as though will configure it later.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vamsi-iMac:tfl bijendra$ rails g model StandardService | |
**Notice: C extension not loaded. This is required for optimum MongoDB Ruby driver performance. | |
You can install the extension as follows: | |
gem install bson_ext | |
If you continue to receive this message after installing, make sure that the | |
bson_ext gem is in your load path and that the bson_ext and mongo gems are of the same version. | |
/Users/bijendra/.rvm/gems/ruby-1.9.2-p320/gems/mongoid-2.4.11/lib/mongoid/railtie.rb:83:in `block in <class:Railtie>': undefined method `[]' for false:FalseClass (NoMethodError) | |
from /Users/bijendra/.rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.6/lib/rails/initializable.rb:30:in `instance_exec' | |
from /Users/bijendra/.rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.6/lib/rails/initializable.rb:30:in `run' | |
from /Users/bijendra/.rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.6/lib/rails/initializable.rb:55:in `block in run_initializers' | |
from /Users/bijendra/.rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.6/lib/rails/initializable.rb:54:in `each' | |
from /Users/bijendra/.rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.6/lib/rails/initializable.rb:54:in `run_initializers' | |
from /Users/bijendra/.rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.6/lib/rails/application.rb:136:in `initialize!' | |
from /Users/bijendra/.rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.6/lib/rails/railtie/configurable.rb:30:in `method_missing' | |
from /Users/bijendra/tfl_project/tfl/config/environment.rb:5:in `<top (required)>' | |
from /Users/bijendra/.rvm/gems/ruby-1.9.2-p320/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:251:in `require' | |
from /Users/bijendra/.rvm/gems/ruby-1.9.2-p320/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:251:in `block in require' | |
from /Users/bijendra/.rvm/gems/ruby-1.9.2-p320/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:236:in `load_dependency' | |
from /Users/bijendra/.rvm/gems/ruby-1.9.2-p320/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:251:in `require' | |
from /Users/bijendra/.rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.6/lib/rails/application.rb:103:in `require_environment!' | |
from /Users/bijendra/.rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.6/lib/rails/commands.rb:25:in `<top (required)>' | |
from script/rails:6:in `require' | |
from script/rails:6:in `<main>' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment