Sha256: 47b6d1c05f4eda34fe2d057a871102ca3d49ba9f1c0c062d691f4ed5fb334871

Contents?: true

Size: 384 Bytes

Versions: 2

Compression:

Stored size: 384 Bytes

Contents

module ContactsHelper

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

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

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fullstack-contacts-0.1.4 app/helpers/contacts_helper.rb
fullstack-contacts-0.1.3 app/helpers/contacts_helper.rb