Module: DisplayFor::Helper
- Defined in:
- lib/display_for/helper.rb
Instance Method Summary collapse
- #csv_for(resource_class, collection, html_options = {}, &block) ⇒ Object
- #list_for(resource_class, collection, html_options = {}, &block) ⇒ Object
- #table_for(resource_class, collection, html_options = {}, &block) ⇒ Object
- #view_for(resource, html_options = {}, &block) ⇒ Object
Instance Method Details
#csv_for(resource_class, collection, html_options = {}, &block) ⇒ Object
15 16 17 |
# File 'lib/display_for/helper.rb', line 15 def csv_for(resource_class, collection, ={}, &block) Builder::Csv.new(resource_class, collection, , self, &block).to_s end |
#list_for(resource_class, collection, html_options = {}, &block) ⇒ Object
3 4 5 |
# File 'lib/display_for/helper.rb', line 3 def list_for(resource_class, collection, ={}, &block) Builder::List.new(resource_class, collection, , self, &block).to_s end |