search for: to_select_tag

Displaying 7 results from an estimated 7 matches for "to_select_tag".

2006 Aug 18
0
Why is select helpers not using options in add_default_name_and_id ?
Hello, In actionpack/lib/action_view/helpers/form_options_helper.rb (trunk) @ ~296 in the def to_select_tag(choices, options, html_options) function, why is there add_default_name_and_id(html_options) instead of add_default_name_and_id(options) This is inconsistent with the non-select helpers where add_default_name_and_id always use options. Is there a special reason for this? Furthermore, non-se...
2006 Nov 23
1
Select Tag not working in 1.2rc1
...=end_form_tag()%> Part of the trace: C:/INSTAN~2/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.5.5618/lib/action_view/helpers/form_options_helper.rb:300:in `value'' C:/INSTAN~2/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.5.5618/lib/action_view/helpers/form_options_helper.rb:300:in `to_select_tag'' C:/INSTAN~2/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.5.5618/lib/action_view/helpers/form_options_helper.rb:66:in `select'' Seems to be a problem with line 300: value = value(object) in form_options_helper.rb This works fine under 1.1.6 I''ve tried upgrading to f...
2005 Nov 15
2
FormOptionsHelper select call failing
...lib/ action_view/helpers/form_helper.rb:247:in `send'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-1.11.0/lib/ action_view/helpers/form_helper.rb:247:in `value'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-1.11.0/lib/ action_view/helpers/form_options_helper.rb:299:in `to_select_tag'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-1.11.0/lib/ action_view/helpers/form_options_helper.rb:63:in `select'' #{RAILS_ROOT}/app/views/folder/new.rhtml:13 Cheers, Pete Yandell
2007 Dec 07
4
strange error on mock proxy
...vendor/rails/actionpack/lib/action_view/helpers/ form_options_helper.rb:161:in `inject'' vendor/rails/actionpack/lib/action_view/helpers/ form_options_helper.rb:161:in `options_for_select'' vendor/rails/actionpack/lib/action_view/helpers/ form_options_helper.rb:358:in `to_select_tag'' vendor/rails/actionpack/lib/action_view/helpers/ form_options_helper.rb:84:in `select'' vendor/rails/actionpack/lib/action_view/helpers/ form_options_helper.rb:409:in `select'' app/views//units/_form.html.erb:13:in `_run_47app47views47units47_form46html4...
2007 Jul 17
5
habtm confusion
.../action_view/helpers/form_options_helper.rb:114:in `inject'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/helpers/form_options_helper.rb:114:in `options_for_select'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/helpers/form_options_helper.rb:302:in `to_select_tag'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/helpers/form_options_helper.rb:66:in `select'' #{RAILS_ROOT}/app/views/admin/_form.rhtml:26:in `_run_rhtml_47app47views47admin47_form46rhtml'' #{RAILS_ROOT}/app/views/admin/edit.rhtml:4:in `_run_rhtml_47app47vie...
2005 May 08
3
Overriding date_select in local project to use custom value rather than blank for starting option...
...pdown is "- Month -", "- Day -", or "- Year -" rather than a blank value for the respective month, day, and year select fields. I took a look at the ruby source for form_options_helper.rb in gems/actionpack-1.8.1/lib/action_view/helpers on my machine, specifically the to_select_tag function and see that it could be reasonably easy to override this method to do what I''d like (I''d need to set an option at the date_select level for a label to use as well), but I have no idea where in my Rails project (directory, file, class, etc.) that I should put my changes....
2005 Feb 13
5
Select Enumerated Values with FormOptionsHelper
...npack-1.4.0/lib/action_view/ helpers/form_helper.rb:203:in `send'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.4.0/lib/action_view/ helpers/form_helper.rb:203:in `value'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.4.0/lib/action_view/ helpers/form_options_helper.rb:200:in `to_select_tag'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.4.0/lib/action_view/ helpers/form_options_helper.rb:20:in `select''