Module: Aureus::Helper
- Includes:
- Formtastic::Helpers::FormHelper
- Defined in:
- lib/aureus/helper.rb
Instance Method Summary collapse
- #aureus_box(title, *args, &block) ⇒ Object
- #aureus_datatable(resource, &block) ⇒ Object
- #aureus_listing(&block) ⇒ Object
- #aureus_messages(flash) ⇒ Object
- #aureus_navigation(&block) ⇒ Object
- #aureus_row(&block) ⇒ Object
- #aureus_toolbar(title, &block) ⇒ Object
Instance Method Details
#aureus_box(title, *args, &block) ⇒ Object
21 22 23 |
# File 'lib/aureus/helper.rb', line 21 def aureus_box(title, *args, &block) Components::Box.new(title, args, &block).render end |
#aureus_datatable(resource, &block) ⇒ Object
25 26 27 |
# File 'lib/aureus/helper.rb', line 25 def aureus_datatable(resource, &block) Components::DataTable.new(resource, &block).render end |
#aureus_listing(&block) ⇒ Object
31 32 33 |
# File 'lib/aureus/helper.rb', line 31 def aureus_listing(&block) Components::Listing.new(&block).render end |
#aureus_messages(flash) ⇒ Object
13 14 15 |
# File 'lib/aureus/helper.rb', line 13 def (flash) Components::Messages.new(flash).render end |
#aureus_navigation(&block) ⇒ Object
9 10 11 |
# File 'lib/aureus/helper.rb', line 9 def (&block) Components::Navigation.new(&block).render end |
#aureus_row(&block) ⇒ Object
17 18 19 |
# File 'lib/aureus/helper.rb', line 17 def aureus_row(&block) Components::Row.new(&block).render end |
#aureus_toolbar(title, &block) ⇒ Object
5 6 7 |
# File 'lib/aureus/helper.rb', line 5 def (title, &block) Components::Toolbar.new(title, &block).render end |