Same results here (Rails 2.2). I've checked the file history and found
that position was an argument of the method that was replaced by
datetime_selector_with_name.

http://github.com/activescaffold/active_scaffold/commit/126b878420cffa360ae120ff97e9a80c6332abf7

Well, even with this information, I couldn't solve the problem. :(

On Nov 21, 9:45 pm, Seth <[EMAIL PROTECTED]> wrote:
> 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] ||= ' &mdash; '
>         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
-~----------~----~----~----~------~----~------~--~---

  • Er... Seth
    • ... Klaus Paiva
    • ... Sergio Cambra .:: entreCables - Symbol Servicios Informáticos S.L. ::.

Reply via email to