Dear Ruby on Rails Community,
I am writing to propose a very minor change to the Rails framework.
The helper method collection_select under Helpers::FormOptionsHelper
is used to generate a <select> tag with relevant <options> from a
given Collection, as you all know. This method's current parameters
are as follows:
collection_select(object, method, collection, value_method,
text_method, options = {}, html_options = {})
In the spirit of common naming conventions, I reckon the value_method
and text_method parameters should default to :id and :name
respectively. What are everyone's views on this?
Regards,
Edd Morgan
http://www.eddm.co.uk
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Core" 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/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---