Hi, all,

A day of reading and searching has netted me nothing exactly like the
situation I'm facing, so here I am posting it.

I'm using ActiveScaffold 1.2RC1, according to its CHANGELOG file.
Some months back, I tried using a much more recent version, but it
didn't seem to work at all with my app (which is on Rails 2.3.4), so I
gave up on upgrading for the time being.

I added a column to an existing database table and to the
config.columns array in my ActiveScaffold controller for that table,
but when we try to create a new instance of the corresponding model
via ActiveScaffold, the following error is thrown:

Jul 12 08:00:45 zap1 rails[31465]: FATAL [Tue Jul 12 08:00:45 -0700
2011]:ActionView::TemplateError (undefined method `dateRangeKey' for
#<WaterfallSubscription:0x8b378f8>) on line #15 of vendor/plugins/
active_scaffold/frontends/c9admin/views/_form_attribute.html.erb:
12:         </label>
13:   </dt>
14:   <dd id="<%=content_id%>" <%= column.collapsed ?
"style='display:none;'" : '' %>>
15:     <%= active_scaffold_input_for column, scope %>
16:     <% if column.description -%>
17:       <span class="description" ><%= column.description %></span>
18:     <% end -%>
    vendor/plugins/active_scaffold/frontends/c9admin/views/
_form_attribute.html.erb:15
        vendor/plugins/active_scaffold/frontends/default/views/
_form.html.erb:14
            vendor/plugins/active_scaffold/frontends/default/views/
_form.html.erb:2
                vendor/plugins/active_scaffold/frontends/default/views/
_create_form.html.erb:40

where "dateRangeKey" is the name of the new database column.  The
column definitely exists in the database, and I can create an instance
of the model from script/console and read/write that column, so I'm
baffled.


Thanks in advance for any assistance,
Al

-- 
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/activescaffold?hl=en.

Reply via email to