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 7930413
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T20:24:50+00:00 2026-06-03T20:24:50+00:00

I run: $ rails g scaffold User first_name:string last_name:string email:string website:string nodes:array links:array –orm=mongo_mapper

  • 0

I run:

$ rails g scaffold User first_name:string last_name:string email:string website:string nodes:array links:array --orm=mongo_mapper

and get:

invoke  mongo_mapper
create    app/models/user.rb
(erb):1:in `template': undefined method `module_namespacing' for #<MongoMapper::Generators::ModelGenerator:0x000000035cd4a8> (NoMethodError)
...
from /home/thrive/.rvm/gems/ruby-1.9.2-p290@mlrepo/gems/mongo_mapper-0.11.1/lib/rails/generators/mongo_mapper/model/model_generator.rb:17:in `create_model_file'
...

full error output … anyone know whats going on here?

I mean its a .rb file with what looks to be ERB code in it:

<%= module_namespacing do - %>

Error causing files:

  • model_generator.rb
  • model.rb
  • 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-03T20:24:57+00:00Added an answer on June 3, 2026 at 8:24 pm

    It looks like the edge branch called ‘generator-parent-option’ will do the trick:

    #/Gemfile
    gem 'mongo_mapper', :git => 'git://github.com/bearded/mongomapper.git', :branch => 'generator-parent-option'
    

    I ran:

    $ rails g scaffold User first_name:string last_name:string email:string website:string nodes:array links:array --skip-migration --orm=mongo_mapper
    

    and got nice clean output:

    thrive@thrive-laptop:~/rails_projects/hive$ rails g scaffold User first_name:string last_name:string email:string website:string nodes:array links:array --skip-migration --orm=mongo_mapper
          invoke  mongo_mapper
        conflict    app/models/user.rb
      Overwrite /home/thrive/rails_projects/hive/app/models/user.rb? (enter "h" for help) [Ynaqdh] h
      Y - yes, overwrite
    n - no, do not overwrite
    a - all, overwrite this and all others
    q - quit, abort
    d - diff, show the differences between the old and the new
    h - help, show this help
      Overwrite /home/thrive/rails_projects/hive/app/models/user.rb? (enter "h" for help) [Ynaqdh] Y
           force    app/models/user.rb
          invoke    test_unit
          create      test/unit/user_test.rb
          create      test/fixtures/users.yml
           route  resources :users
          invoke  scaffold_controller
       identical    app/controllers/users_controller.rb
          invoke    haml
           exist      app/views/users
       identical      app/views/users/index.html.haml
       identical      app/views/users/edit.html.haml
       identical      app/views/users/show.html.haml
       identical      app/views/users/new.html.haml
       identical      app/views/users/_form.html.haml
          invoke    test_unit
       identical      test/functional/users_controller_test.rb
          invoke    helper
       identical      app/helpers/users_helper.rb
          invoke      test_unit
       identical        test/unit/helpers/users_helper_test.rb
          invoke  stylesheets
       identical    public/stylesheets/scaffold.css
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Initially I ran rails g scaffold Post title:string content:text and after migrating everything worked
I'm following this tutorial (seems good) for Rails. After I run ruby script/generate scaffold
I have created model, view and controller: $ rails generate scaffold Post name:string title:string
When I try to run rails server on a new project it returns Could
Before the switch and in all apps on this passenger that run rails 2.0
I currently run an Rails app on a single VPS with it's own MySQL
I'd like to run the rails generate script and create a model that belongs
[Rails] I need to run some code only 40% of the times, how may
I am trying to run jquery through a rails app. I have the edit
In Rails, I want to run the js.erb file associated with an action on

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.