| Module | ActionView::Helpers::FormHelper |
| In: |
lib/haml/helpers/action_view_mods.rb
|
| form_for | -> | form_for_without_haml |
# File lib/haml/helpers/action_view_mods.rb, line 159
159: def form_for_with_haml(object_name, *args, &proc)
160: if block_given? && is_haml?
161: oldproc = proc
162: proc = haml_bind_proc do |*args|
163: tab_up
164: oldproc.call(*args)
165: tab_down
166: concat haml_indent
167: end
168: concat haml_indent
169: end
170: form_for_without_haml(object_name, *args, &proc)
171: concat "\n" if block_given? && is_haml?
172: end