Ok this is happened to me a couple of times now and can’t seem to
figure out how or why. This goes back to my issue of creating tables
based off of an item that is created. First I have this code:
create_table(itemtablename, :options => ‘ENGINE=InnoDB
DEFAULT CHARSET=utf8’) do |t|
t.column :field_type, :string, :null => false
t.column :item_text, :text, :null => false
t.column :required, :tinyint, :null => false, :default => ‘0’
t.column :image, :text, :null => true
now I tried to use this statement in both my controller and my model:
but I would get a undefined method `create_table’ for
I am having the same issue with running the
command. I am trying to add data to the table that i created and the
only way I can tell how to do that is by doing everything manual as
the table names are going to be changing based on what item the user
is creating or editing.
I am connecting to a MySQL 5 db which as of right now is what we plan
to run in production and I did install the mysql adapter (at least I
think I did as it told me I successfully installed it.)
How do I reference a different module?
sorry for the dumb question but this is really starting to get on my
nerves. I feel like I am so close yet so far away.