Ruby on Rails Thursday, December 30, 2010

Hi,

I have a model name called 'Address' with 4
column(id,code,details,active).

Here i declared
set_primary_key :code.
and map these code to others table(association) and id is serial.

now i am not able to create new record for address(giving input for
code, details, active).

i am getting below error

code is not null..

Code value is not take and insert to table.


Any help would be appreciated..

Thanks & Regards,
Sathiyaraj Gurusamy

--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment