Single table inheritance

Hi all
plz hel me

1
2
3
4
5
6
7
8

*im using single table inheritance in thirdpartycompany model
ThirdPartyCompany < Company

now im creating a new thirdpartycompant using
thirdpartycompany controller
@third_party_company
=ThirdPartyCompany.new(params[:third_party_company])

@third_party_company.save

, but data is not going to table company…can u tell me what is problem
*

or open this

http://pastie.org/849982
http://pastie.org/849982
Regards,
Shyam
+91-9716-18-9650

shyam mohan wrote:

*im using single table inheritance in thirdpartycompany model
ThirdPartyCompany < Company

now im creating a new thirdpartycompant using
thirdpartycompany controller
@third_party_company
=ThirdPartyCompany.new(params[:third_party_company])

@third_party_company.save

, but data is not going to table company…can u tell me what is problem
Change @third_party_company.save to @third_party_company.save! and see
what the error message says

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs