I followed this tutorial for Ruby on Rails…
Everything went fine. I created the DB in MySQL and tested the
recipe/new and recipe/list functions, and all went smooth.
Now I’m trying to use Ruby on Rails to track software licenses here at
work and I keep running into this strange problem. I am setting up the
DB, model, and controller files just fine…
Warning: The database defined as ‘test’ will be erased and
re-generated from your development database when you run ‘rake’.
Do not set this db to the same as development or production.
class Softlic < ActiveRecord::Base
class SoftlicController < ApplicationController
So here is my problem. Ruby or maybe Rails, keeps addign the letter “s”
to the MySQL table name like it shows here…
ActiveRecord::StatementInvalid in SoftlicController#new
Mysql::Error: #42S02Table ‘gcsaam.softlics’ doesn’t exist: SHOW FIELDS
My table name is softlic, not softlics. I’ve been at this for a day and
a half and am about to toss something across the room. I am totally
stumped here. I even thought maybe it was a bug issue with 1.8.4-17 so
I downgraded to 1.8.2-15. Does anybody know what my problem might be?
Am I missing some small morsel of info here? My new project is pretty
much a mirror image of the cookbook example with the exception of
filename changes and different fields in the DB. Help! Thank You.