Hi,
I'm using the 2.3 stable branch of activescaffold with rails 2.3.5.
To prevent users from preventing overwriting each others changes, I
added a new column to my table: lock_version. According to the
documentation, active record automatically maintains this column and
throws a stable object error when the same row is updated
simultaneously.
However, when I added this column in my controller for activescaffold
and when i hit "edit" on any of the rows for this table, I get the
following error:
ActionView::TemplateError (undefined local variable or method `scope'
for #<ActionView::Base:0x888ba78>) on line #1 of vendor/plugins/
activescaffold-active_scaffold-444715a/frontends/default/views/
_form_hidden_attribute.html.erb:
1: <%= hidden_field :record, column.name,
active_scaffold_input_options(column, scope) %>
vendor/plugins/activescaffold-active_scaffold-444715a/frontends/
default/views/_form_hidden_attribute.html.erb:1
C:/Program Files/BitNami RubyStack/ruby/lib/ruby/gems/1.8/gems/
newrelic_rpm-2.12.0/lib/new_relic/agent/method_tracer.rb:319:in
`render'
where _form_hidden_attribute.html.erb just has this line in it:
<%= hidden_field :record, column.name,
active_scaffold_input_options(column, scope) %>
Any idea why this is happening? Is this a bug and is there a
workaround for this?
--
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.