Module: CsvHelper
- Defined in:
- app/helpers/csv_helper.rb
Instance Method Summary collapse
-
#csv_form(url_for_options = {}, &block) ⇒ Object
The optional block allows you to pass in extra HTML that will be inserted after the CSV form fields but before the submit button.
Instance Method Details
#csv_form(url_for_options = {}, &block) ⇒ Object
The optional block allows you to pass in extra HTML that will be inserted after the CSV form fields but before the submit button.
4 5 6 7 8 9 10 11 |
# File 'app/helpers/csv_helper.rb', line 4 def csv_form( = {}, &block) if block_given? other_html = capture(&block) else other_html = nil end render :partial => 'csv_import/csv', :locals => {:url_for_options => , :other_html => other_html} end |