The application will be similar to the blog application. # port = otherport. This section shows how to create a new Ruby on Rails application using Mongoid for data access. # If the port is 27017 by default then otherport don't need to assignment # use fsync and lock to the file-system before backup the file-system Generate page, controller and model layer files through the generate command of rails (individuals still prefer to create them manually, here for demonstration convenience) Enter in the browser:, you can see the following page Start the program again, the notice prompt message disappears, and the startup is normal. Just install the library as prompted (don’t forget to add gem in gemfile): You can see bson from the output above_ Ext library not loaded. INFO WEBrick::HTTPServer#start: pid=19595 port=3000 => Rails 3.0.10 application starting in development on If you continue to receive this message after installing, make sure that theīson_ext gem is in your load path and that the bson_ext and mongo gems are of the same version.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |