Thanks Frederick, but I still do not understand what's going on here.

I changed this line to belongs_to :contact_type ..
The result is the same.

Controller was generated as standart scaffold.
def create
  @contact = Contact.new(params[:contact].merge(:user =>
current_user))
  respond_to do |format|
    if(@contact.save)
    ...

Contact can't be blank
Do you know when this validation should appear?


>
> Your problem may lie here - the type attribute (if present) is used for 
> single table inheritance. Obviously this is adding a type method rather than 
> an attribute but I would definitely try changing that association name.
>

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

Reply via email to