[Rails] Is this a bug in ActiveRecord or expected to work this way ??
Hi,
I used "type" as a column in "rails generate model" there was no error.
I did a rake db:migrate again no problem.
I created the values using console again no problem.
I did a show function in users contoller then rails threw up the error. But should it not give this error right at the time of generate
model or db:migrate or atleast create.
ActiveRecord::SubclassNotFound in UsersController#show
The single-table inheritance mechanism failed to locate the subclass: 'student'. 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
User.inheritance_column to use another column for that information.
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.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home