It was a bug in rails-2.3 branch. It was fixed in master but I have backported to rails-2.3 now
On Miércoles, 22 de Diciembre de 2010 04:42:01 p k escribió: > 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? -- Sergio Cambra .:: entreCables S.L. ::. Mariana Pineda 23, 50.018 Zaragoza T) 902 021 404 F) 976 52 98 07 E) [email protected] -- 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.
