On Feb 7, 7:00 pm, Solly <directxma...@gmail.com> wrote: > Hi, > I have an application using STI on a model named Publisher. Publisher > uses STI via a column named "service". When I call > -- > p = Publisher.new(..., :service => "TwitterPublisher") > -- > the service does not get assigned, yet all other columns do. However, > if I later call > -- > p[:service] = "TwitterPublisher" > -- > all is well. Any ideas about what is going on?
inheritance_column (service in this case) is automatically protected against mass-assignment. If you examine your logs carefully, you should see some messages about that. --Matt Jones -- 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.