Module: ContactsHelper

Defined in:
app/helpers/contacts_helper.rb

Instance Method Summary collapse

Instance Method Details

#contact_formObject



7
8
9
# File 'app/helpers/contacts_helper.rb', line 7

def contact_form
  render :partial => "fullstack/contacts/form"
end

#contact_successObject



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

def contact_success
  render :partial => "fullstack/contacts/success"
end

#contacts_dashboard_widgetObject



11
12
13
14
# File 'app/helpers/contacts_helper.rb', line 11

def contacts_dashboard_widget
  contacts = Contact.order("created_at DESC").limit(5)
  render :partial => "admin/contacts/contacts_dashboard_widget", :locals => { :contacts => contacts }
end