Forum: Ruby on Rails Scaffolding Extension - Polimorphic Associations

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
2ffdedc7137356f48e5bfcb00fce991a?d=identicon&s=25 Wiktor --- (iktorn)
on 2006-06-06 09:18
When I try to use it with polimorphic associations I get the following
error

In browse action:

activesupport-1.3.1/lib/active_support/dependencies.rb:100:in
`const_missing': uninitialized constant Privable

activerecord-1.14.2/lib/active_record/base.rb:1246:in `compute_type'
activesupport-1.3.1/lib/active_support/dependencies.rb:131:in
`const_missing'
activesupport-1.3.1/lib/active_support/dependencies.rb:133:in
`const_missing'
(eval):1:in `compute_type'
-e:3

In show action:

activesupport-1.3.1/lib/active_support/dependencies.rb:100:in
`const_missing': uninitialized constant Privable

Extracted source (around line #6):

3: <table id="scaffolded" class="<%=
@scaffold_class.scaffold_table_class :show %>">
4: <thead><tr><th>Attribute</th><th>Value</th></tr></thead>
5: <tbody>
6: <% @scaffold_class.scaffold_fields.each do |column| %>
7:   <tr>
8:     <td><%= column.humanize %></td>
9:     <td><%=h scaffold_value(@scaffold_singular_object, column)
%></td>

activerecord-1.14.2/lib/active_record/base.rb:1246:in `compute_type'
activesupport-1.3.1/lib/active_support/dependencies.rb:131:in
`const_missing'
activesupport-1.3.1/lib/active_support/dependencies.rb:133:in
`const_missing'
(eval):1:in `compute_type'
-e:3


Any ideas or hints how to fix this?

Cheers
This topic is locked and can not be replied to.