Module: TestimonialsHelper

Defined in:
app/helpers/testimonials_helper.rb

Overview

Helper methods for handling testimonials

Instance Method Summary collapse

Instance Method Details

Parameters:

  • entity (Testimonial)
  • text (String) (defaults to: entity.name)
  • options (Hash) (defaults to: {})


8
9
10
# File 'app/helpers/testimonials_helper.rb', line 8

def admin_testimonial_link(entity, text = entity.name, options = {})
  link_to(text, admin_testimonial_path(id: entity.id), options)
end