Project

bugherd

0.0
No commit activity in last 3 years
No release in over 3 years
BugHerd lets you report and manage issues directly from any website it's embedded on.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

>= 3.0
 Project Readme

BugHerd gem

Add the BugHerd widget to your Rails site. Get a BugHerd account.

Installation

Add the following to your Gemfile:

gem "bugherd"

...and then run bundle.

Add a file config/initializers/bugherd.rb containing:

BugHerd.configure do |config|
  config.project_key = 'YOUR KEY HERE'
end

Alternatively you can set an environment variable called BUGHERD_PROJECT_KEY.

You can obtain the project key from your project's installation options in BugHerd.

Now add to the head tag in your layout(s):

<%= bugherd_tag %>

If you use turbolinks, please be sure to use this instead:

<%= bugherd_turbolinks_tag %>

Meta data

BugHerd allows you to pass in extra data which will be added as metadata to any bug your users may log on the page where the widget is rendered.

<%= bugherd_tag metadata: { user_id: current_user.id.to_s, controller: controller.controller_name } %>

Pre-populate email addresses

If your site has logged in users and you use public feedback, have the email addresses pre-populated:

<%= bugherd_tag reporter: { email: current_user.email, required: "true" } %>