Keep getting "Undefined local variable or method" when creating a new rails application

Oh Yes, and I forgot to mention I step I did in between. After generating the scaffold, then I'd migrate the database.

rake db:migrate

Just wanted to throw that in there so nobody mentions me missing that step, lol :stuck_out_tongue:

Thanks,

Justin

script/generate scaffold is expecting the singular name, not the plural.

Fred

I think your problem is that you used the plural "courses" on your call to script/generate scaffold. That generator wants a *singular* noun. So do a:

  rake db:rollback

and

  script/destroy scaffold courses

followed by a:

  script/generate scaffold course title:string description:text course_num:integer

and

  rake db:migrate

And you should be good.

HTH,

-Roy

That was it. I had no idea it had a singular naming convention in that sense.

Thank you very much to all of you for your help. I'll keep that in mind for now on :).

Thanks,

Justin