Module: RenderHelper
- Defined in:
- app/helpers/render_helper.rb
Instance Method Summary collapse
- #datepicker_field_for(form, field) ⇒ Object
- #error_messages_for(resource) ⇒ Object
- #render_flash_messages ⇒ Object
- #search_form(url) ⇒ Object
Instance Method Details
#datepicker_field_for(form, field) ⇒ Object
11 12 13 |
# File 'app/helpers/render_helper.rb', line 11 def datepicker_field_for(form, field) render 'shared/datepicker_field', f: form, field: field end |
#error_messages_for(resource) ⇒ Object
7 8 9 |
# File 'app/helpers/render_helper.rb', line 7 def (resource) render partial: 'shared/form/error_messages', locals: { resource: resource } end |
#render_flash_messages ⇒ Object
3 4 5 |
# File 'app/helpers/render_helper.rb', line 3 def render 'shared/messages' end |
#search_form(url) ⇒ Object
15 16 17 |
# File 'app/helpers/render_helper.rb', line 15 def search_form(url) render 'shared/search_form', url: url end |