Hello,
I've just upgraded to Rails 2.2 and installed the latest
ActiveScaffold. I am running into this error:
ActionView::TemplateError (undefined local variable or method
`position' for #<ActionView::Helpers::InstanceTag:0x25d9e34>) on line
#7 of vendor/plugins/active_scaffold/frontends/default/views/
_form_attribute.rhtml:
4: <label for="<%= active_scaffold_input_options(column, scope)
[:id] %>"><%= column.label %></label>
5: </dt>
6: <dd>
7: <%= active_scaffold_input_for column, scope %>
8: <% if column.description -%>
9: <span class="description"><%= column.description %></span>
10: <% end -%>
vendor/plugins/active_scaffold/lib/extensions/
name_option_for_datetime.rb:16:in `datetime_selector'
vendor/rails/actionpack/lib/action_view/helpers/date_helper.rb:
832:in `to_date_select_tag_without_error_wrapping'
vendor/rails/actionpack/lib/action_view/helpers/
active_record_helper.rb:268:in `to_date_select_tag'
vendor/rails/actionpack/lib/action_view/helpers/
active_record_helper.rb:237:in `to_tag'
vendor/rails/actionpack/lib/action_view/helpers/
active_record_helper.rb:22:in `input'
vendor/plugins/active_scaffold/lib/helpers/form_column_helpers.rb:
35:in `active_scaffold_input_for'
Which can be traced to this:
def datetime_selector_with_name(options, html_options)
datetime = value(object) || default_datetime(options)
options = options.dup
options[:field_name] = @method_name
options[:include_position] = true
options[:prefix] ||= @object_name
options[:index] ||= @auto_index
options[:datetime_separator] ||= ' — '
options[:time_separator] ||= ' : '
options.merge(:prefix => options[:name].dup.insert(-2, "(#
{position}i)")) if options[:name]
DateTimeSelector.new(datetime, options.merge(:tag => true),
html_options)
end
alias_method_chain :datetime_selector, :name
end
Notice the #{position} in the options.merge. What is this position
supposed to be?
Thanks for your help,
Seth
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---