Re: Shouldn''t this insert in table?

RVince
Thu, 03 Sep 2009 11:00:13 -0000

It doesn;t save and the log reads:

NoMethodError (undefined method `MyB'' for
#<MyAController:0x664f93c>):
  app/controllers/mya_controller.rb:174:in `cxl''

But I DO have a MyB model:

class MyB < ActiveRecord::Base
end

as well as a MyBsController:

class MyBsController < ApplicationController
end

Im confused regarding ActiveRecord here -- I''m just trying to add a
record into the table associate with MyB from MyAsController. -RVince