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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T11:05:12+00:00 2026-06-13T11:05:12+00:00

Hi I am getting error while I am generating the model. Following the error

  • 0

Hi I am getting error while I am generating the model. Following the error stack i am facing.

   rails generate model id:string name:string userid:string groupid:string bookmarktype:string typeid:string additionaldata:string
    include_class is deprecated. Use java_import.
    include_class is deprecated. Use java_import.
    Resolved collector.newrelic.com to 204.93.223.153
          invoke  active_record
    NameError: wrong constant name Id:string
                const_defined? at org/jruby/RubyModule.java:2608
              class_collisions at /home/anand/.rvm/gems/jruby-1.7.0.preview2/gems/railties-3.2.3/lib/rails/generators/base.rb:267
                          each at org/jruby/RubyArray.java:1612
              class_collisions at /home/anand/.rvm/gems/jruby-1.7.0.preview2/gems/railties-3.2.3/lib/rails/generators/base.rb:249
         check_class_collision at /home/anand/.rvm/gems/jruby-1.7.0.preview2/gems/railties-3.2.3/lib/rails/generators/named_base.rb:183
                      __send__ at org/jruby/RubyBasicObject.java:1667
                          send at org/jruby/RubyKernel.java:2060
                           run at /home/anand/.rvm/gems/jruby-1.7.0.preview2/gems/thor-0.14.6/lib/thor/task.rb:21
                   invoke_task at /home/anand/.rvm/gems/jruby-1.7.0.preview2/gems/thor-0.14.6/lib/thor/invocation.rb:118
                    invoke_all at /home/anand/.rvm/gems/jruby-1.7.0.preview2/gems/thor-0.14.6/lib/thor/invocation.rb:124
                          each at org/jruby/RubyHash.java:1192
                           map at org/jruby/RubyEnumerable.java:715
                    invoke_all at /home/anand/.rvm/gems/jruby-1.7.0.preview2/gems/thor-0.14.6/lib/thor/invocation.rb:124
                      dispatch at /home/anand/.rvm/gems/jruby-1.7.0.preview2/gems/thor-0.14.6/lib/thor/group.rb:226
                      __send__ at org/jruby/RubyBasicObject.java:1694
                          send at org/jruby/RubyKernel.java:2072
                        invoke at /home/anand/.rvm/gems/jruby-1.7.0.preview2/gems/thor-0.14.6/lib/thor/invocation.rb:109
      _invoke_for_class_method at /home/anand/.rvm/gems/jruby-1.7.0.preview2/gems/thor-0.14.6/lib/thor/group.rb:269
                  with_padding at /home/anand/.rvm/gems/jruby-1.7.0.preview2/gems/thor-0.14.6/lib/thor/shell.rb:74

Following is the output of rvm list

rvm list

rvm rubies

=* jruby-1.7.0.preview2 [ i386 ]
   ruby-1.9.3-p194 [ i686 ]

# => - current
# =* - current && default
#  * - default

I am using Ubuntu 12.04. How to resolve this problem?

  • 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-13T11:05:13+00:00Added an answer on June 13, 2026 at 11:05 am

    You need to provide the model name while generating with the fields. For example,

    rails generate model UserDetails id:string name:string userid:string groupid:string bookmarktype:string typeid:string additionaldata:string
    

    ‘UserDetails’ is the model name.

    It’s might be the problem. Not sure what you are asking clearly. Cheers!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We are getting the following error while generating a Jasper report when running our
I am getting following error while installing the application on my device. before running
i am getting following error while getting data from dictionary -[__NSCFString objectForKey:]: unrecognized selector
Im getting following error while running the query. org.hibernate.hql.ast.QuerySyntaxException: expecting CLOSE, found 'LIMIT' near
I am getting following error while using POCO entity width EF One or more
I am getting an error while generating a sequence for an id field in
I am getting following error while running my application which is asp.net. Server Error
getting error while try to start service
Getting error while inserting values into database (SQL Server 2008) Implicit conversion from data
I'm getting error while using replace in an update statement in sql server 2008.

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.