Skip to content

Instantly share code, notes, and snippets.

@rauxalach
Created May 28, 2012 04:38
Show Gist options
  • Save rauxalach/2817249 to your computer and use it in GitHub Desktop.
Save rauxalach/2817249 to your computer and use it in GitHub Desktop.
Receive Claim on Registration > Claims tab
ActiveRecord::SubclassNotFound in Claim_receives#new
Showing /Users/huyle/Sites/aac/app/views/claim_receives/new.html.haml where line #8 raised:
The single-table inheritance mechanism failed to locate the subclass: 'Form530'. This error is raised because the column 'type' is reserved for storing the class in case of inheritance. Please rename this column if you didn't intend it to be used for storing the inheritance class or overwrite Form.inheritance_column to use another column for that information.
Extracted source (around line #8):
5: = simple_form_for [@registration, @claim, @claim_receive] do |f|
6:
7: = label_tag nil, 'Other received forms'
8: = select_tag 'claim_receive[other_received_forms][]', options_from_collection_for_select(Form.all, :id, :name), { :multiple => true, :size => 15, :id => 'other_received_forms' }
9: %br
10: %i
11: Please hold
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment