Module: RenderHelper

Defined in:
app/helpers/render_helper.rb

Instance Method Summary collapse

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 error_messages_for(resource)
  render partial: 'shared/form/error_messages', locals: { resource: resource }
end

#render_flash_messagesObject



3
4
5
# File 'app/helpers/render_helper.rb', line 3

def render_flash_messages
  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