@@ -90,7 +90,6 @@ module Helpers # :nodoc:
90
90
# <option value="3">Jokes</option>
91
91
# <option value="4">Poems</option>
92
92
# </select>
93
- #
94
93
module FormOptionsHelper
95
94
# ERB::Util can mask some helpers like textilize. Make sure to include them.
96
95
include TextHelper
@@ -156,7 +155,6 @@ module FormOptionsHelper
156
155
#
157
156
# In case if you don't want the helper to generate this hidden field you can specify
158
157
# <tt>include_hidden: false</tt> option.
159
- #
160
158
def select ( object , method , choices = nil , options = { } , html_options = { } , &block )
161
159
Tags ::Select . new ( object , method , self , choices , options , html_options , &block ) . render
162
160
end
@@ -180,6 +178,7 @@ def select(object, method, choices = nil, options = {}, html_options = {}, &bloc
180
178
#
181
179
# class Author < ActiveRecord::Base
182
180
# has_many :posts
181
+ #
183
182
# def name_with_initial
184
183
# "#{first_name.first}. #{last_name}"
185
184
# end
@@ -255,7 +254,6 @@ def collection_select(object, method, collection, value_method, text_method, opt
255
254
# <option value="2">Ireland</option>
256
255
# </optgroup>
257
256
# </select>
258
- #
259
257
def grouped_collection_select ( object , method , collection , group_method , group_label_method , option_key_method , option_value_method , options = { } , html_options = { } )
260
258
Tags ::GroupedCollectionSelect . new ( object , method , self , collection , group_method , group_label_method , option_key_method , option_value_method , options , html_options ) . render
261
259
end
@@ -625,11 +623,14 @@ def weekday_options_for_select(selected = nil, index_as_value: false, day_format
625
623
# retrieve the value/text.
626
624
#
627
625
# Example object structure for use with this method:
626
+ #
628
627
# class Post < ActiveRecord::Base
629
628
# belongs_to :author
630
629
# end
630
+ #
631
631
# class Author < ActiveRecord::Base
632
632
# has_many :posts
633
+ #
633
634
# def name_with_initial
634
635
# "#{first_name.first}. #{last_name}"
635
636
# end
0 commit comments