homeschool 0.0.1.22 → 0.0.1.23

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/form_buildr.rb +4 -0
  2. metadata +2 -2
@@ -47,6 +47,10 @@ class ActionView::Helpers::FormBuilder
47
47
  return send(:check_box, method, options.without(:label, :no_colon), checked_value, unchecked_value) + send(:label_for, method, options.update(:no_colon => true))
48
48
  end
49
49
 
50
+ def labeled_select(method, choices, options={}, html_options={})
51
+ return send(:select, method, choices, options, html_options) + send(:label_for, method, options.update(:no_colon => true))
52
+ end
53
+
50
54
  rdef(/labeled_(.*)/) do |match, *args|
51
55
  return send(:label_for, *args) + send(match[1].to_sym, *args)
52
56
  end
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.0
3
3
  specification_version: 1
4
4
  name: homeschool
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.0.1.22
7
- date: 2007-09-11 00:00:00 -04:00
6
+ version: 0.0.1.23
7
+ date: 2007-09-20 00:00:00 -04:00
8
8
  summary: The homeschool gem
9
9
  require_paths:
10
10
  - lib