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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T04:24:36+00:00 2026-05-19T04:24:36+00:00

Okay so I was just starting this rails app and generated my first model

  • 0

Okay so I was just starting this rails app and generated my first model

ruby script/generate model Grid req:string class:string ctitle:string credits:float grade:string pass:boolean

created my table

rake db:migrate
(in C:/Users/Michael/InstantRails/rails_apps/studentGrid)
== CreateGrids: migrating ====================================================
— create_table(:grids)
-> 0.0150s
== CreateGrids: migrated (0.0150s) ===========================================

and went to the console to add some data to my table

Grid
=> Grid(id: integer, req: string, class: string, ctitle: string, credits: float,
grade: string, pass: boolean, created_at: datetime, updated_at: datetime)
Grid.create(:req=>”Math Elective”, :class=>”Math 111″, :ctitle=>”Calculus I”, :credits=>3.0)

Pretty standard I thought, but then I get this error and I don’t understand why

NoMethodError: undefined method 'generated_methods' for nil:NilClass
from C:/Users/Michael/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesup
port-2.3.5/lib/active_support/whiny_nil.rb:52:in
method_missing’
from C:/Users/Michael/InstantRails/ruby/lib/ruby/gems/1.8/gems/activerec
ord-2.3.5/lib/active_record/attribute_methods.rb:352:in respond_to?'
from C:/Users/Michael/InstantRails/ruby/lib/ruby/gems/1.8/gems/activerec
ord-2.3.5/lib/active_record/base.rb:2746:in
attributes=’
from C:/Users/Michael/InstantRails/ruby/lib/ruby/gems/1.8/gems/activerec
ord-2.3.5/lib/active_record/base.rb:2742:in each'
from C:/Users/Michael/InstantRails/ruby/lib/ruby/gems/1.8/gems/activerec
ord-2.3.5/lib/active_record/base.rb:2742:in
attributes=’
from C:/Users/Michael/InstantRails/ruby/lib/ruby/gems/1.8/gems/activerec
ord-2.3.5/lib/active_record/base.rb:2438:in initialize'
from C:/Users/Michael/InstantRails/ruby/lib/ruby/gems/1.8/gems/activerec
ord-2.3.5/lib/active_record/base.rb:721:in
new’
from C:/Users/Michael/InstantRails/ruby/lib/ruby/gems/1.8/gems/activerec
ord-2.3.5/lib/active_record/base.rb:721:in `create’
from (irb):2
from :0

  • 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-05-19T04:24:37+00:00Added an answer on May 19, 2026 at 4:24 am

    I’d try renaming the class column to something else. See here for other terms to avoid.

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

Sidebar

Related Questions

Okay, just learnt LINQ syntax about ten minutes ago, made a first program: public
Okay, this is just a minor caveat. I am currently working with the lovely
Okay, before you guys go nuts -- this is just a small site, temporary
Okay I'm working in jQuery mobile, and I just put in a PHP script
Starting a project, and this irriating me. I think the code is okay, but
Okay i'm just starting out on PHP & i'm doing the tutorials on the
Okay, something just went crazy. Unless China is taking over starting with my test
I'm learning the basics of Ruby (just starting out), and I came across the
I'm just starting to get my mind around this whole Object Oriented thing, so
I just want to ask if is it okay that I use native PHP

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.