You need to sign in to do that
Don't have an account?
Jashugan
Uninitialized Constant Error in Rails
I get the following error:
coming from the class_from_entity_name method in asf_adapter.rb
Here is my sf_product.rb:
Here is my product.rb:
I can get rid of this error by changing the sf_product.rb file to this:
Is there a reason that the Product2 class must exist at all? Is there any documentation on ActiveSalesforce other than the README file?
uninitialized constant Product2
coming from the class_from_entity_name method in asf_adapter.rb
Here is my sf_product.rb:
class SfProduct < ActiveRecord::Base
set_table_name "Product2"
set_primary_key "id"
establish_connection "salesforce"
end
Here is my product.rb:
class Product < ActiveRecord::Base
end
I can get rid of this error by changing the sf_product.rb file to this:
class SfProduct < ActiveRecord::Base
set_table_name "Product2"
set_primary_key "id"
establish_connection "salesforce"
end
# for some reason this is needed
class Product2 < ActiveRecord::Base
end
Is there a reason that the Product2 class must exist at all? Is there any documentation on ActiveSalesforce other than the README file?
Message Edited by Jashugan on 08-24-2007 10:15 AM