Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8523587
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T07:27:06+00:00 2026-06-11T07:27:06+00:00

Doing a Rails project with MongoDB + MongoMapper Rake creates the Mongo db with

  • 0

Doing a Rails project with MongoDB + MongoMapper

Rake creates the Mongo db with environment names hyphenated

ie myapp-development

which does not play well in the Mongo shell…. To edit the environment names, do I need to override the core Rails code or can it be done on a per app basis?

Else, is there a way to run commands normally on a hyphenated db name from mongo shell?

db.test.find() 

returns OK

db.tests-hyphenated.find()

returns

ReferenceError: hyphenated is not defined

.

use tests-hyphenated
db.this.find()

returns OK

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T07:27:08+00:00Added an answer on June 11, 2026 at 7:27 am

    You can make it play in the mongo shell like this:

    db["tests-hyphenated"].find()
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a rails project deployed on heroku which has only a production environment.
At my new job I am doing rails development and I am on Ubuntu
Im using Emacs with Ruby Electric and the Rinari extension for doing Rails development
I am doing some initial testing for a Rails app which will be deployed
I'm doing my first Ruby on Rails project. I am working on a project
In my rails project, I have a query which finds the 10 most recent
I am used to doing Rails development work on a Mac. However, now other
Im doing a ruby on rails project for work and they would like to
When doing an upload in my Rails project, the database stores --- !ruby/object:File content_type:
I am doing a ruby on rails project in class with a group and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.