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 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
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 problemChange @third_party_company.save to @third_party_company.save! and see what the error message says -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.