Fellas,
I also just updated to 2.1 from 2.0.2, seems I have a similar problem,
but I don't have any view helper plugins involved:
ArgumentError in Entries#index wrong number of arguments (3 for 2)
8: = date_select( 'context', 'start_date', {:start_year =>
2007, :order => [:month, :day, :year], :use_short_month =>
true, :include_blank => false})
According to the API, this should still be valid, so I'm guessing the
error is something else.
I _do_ have an override of a DateHelper method so that my selects can
actually have unique dom IDs, but I just compared the old and new
versions of the DateHelper method I'm overriding, and they don't
appear to have changed:
Rails 2.1:
def name_and_id_from_options(options, type)
options[:name] = (options[:prefix] || DEFAULT_PREFIX) +
(options[:discard_type] ? '' : "[#{type}]")
options[:id] = options[:name].gsub(/([\[\(])|(\]\[)/,
'_').gsub(/[\]\)]/, '')
end
Rails 2.0.2:
def name_and_id_from_options(options, type)
options[:name] = (options[:prefix] || DEFAULT_PREFIX) +
(options[:discard_type] ? '' : "[#{type}]")
options[:id] = options[:name].gsub(/([\[\(])|(\]\[)/,
'_').gsub(/[\]\)]/, '')
end
My override in initializers/date_helper.rb:
module ActionView
module Helpers
module DateHelper
def name_and_id_from_options(options, type)
options[:name] = (options[:prefix] || DEFAULT_PREFIX) +
(options[:discard_type] ? '' : "[#{type}]")
name = options[:name].gsub(/([\[\(])|(\]\[)/, '_').gsub(/[\]
\)]/, '')
unless options[:id].nil?
options[:id] = name.sub(/_/, "_#{options[:id]}_")
else
options[:id] = name
end
end
end
end
end
Any help is gladly appreciated!
Cheers,
Billy