Skip to content
This repository has been archived by the owner on Nov 2, 2018. It is now read-only.

Commit

Permalink
Merge branch 'replace_constants_with_settings' of github.com:wwidea/f…
Browse files Browse the repository at this point in the history
…eedbacker into replace_constants_with_settings
  • Loading branch information
aaron committed Jul 16, 2013
2 parents a69143c + 6b9a887 commit 1167ba6
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[![Code Climate](https://codeclimate.com/badge.png)](https://codeclimate.com/github/wwidea/feedbacker)
[![Gem Version](https://badge.fury.io/rb/feedbacker.png)](http://badge.fury.io/rb/feedbacker)
[![Code Climate](https://codeclimate.com/github/wwidea/feedbacker.png)](https://codeclimate.com/github/wwidea/feedbacker)

Feedbacker
==========
Expand All @@ -20,45 +21,45 @@ Installation
------------
1. Add the following to your Gemfile.

gem :feedbacker
gem :feedbacker

2. Run `bundle install`

3. Add the following line to your application layout.

<%= javascript_include_tag :feedbacker %>
<%= javascript_include_tag :feedbacker %>

4. Add the following line to your application layout before you call application.css. Override default settings in application.css.

<%= stylesheet_link_tag :feedbacker %>
<%= stylesheet_link_tag :feedbacker %>

5. Add the following line at at appropriate position in your application layout.

<%= render(:partial => 'feedbacker/tab') unless current_user.is_guest? %>
<%= render(:partial => 'feedbacker/tab') unless current_user.is_guest? %>

6. Add the folllowing line to config/application.rb.

config.paths['db/migrate'] += Feedbacker::Engine.paths['db/migrate'].existent
config.paths['db/migrate'] += Feedbacker::Engine.paths['db/migrate'].existent

7. Run `rake db:migrate` to add remarks table.

8. Create feedbacker.rb in config/initializers and add the following line.

Feedbacker::SETTINGS.email_to = 'support@yourdomain.com'
Feedbacker::SETTINGS.email_to = 'support@yourdomain.com'

OR

Feedbacker::SETTINGS.update do |settings|
settings.email_to = 'support@yourdomain.com'
settings.user_name_method = :name # default value
settings.email_prefix = '[FEEDBACKER]' # default value
end
Feedbacker::SETTINGS.update do |settings|
settings.email_to = 'support@yourdomain.com'
settings.user_name_method = :name # default value
settings.email_prefix = '[FEEDBACKER]' # default value
end


Copyright (c) 2009-2013 WWIDEA, Inc. released under the MIT license


Contributions
-------------

If have improvements to contribute to this gem, please feel free to fork, commit with tests (if applicable), and then send a pull request. Thank You!

Copyright (c) 2009-2013 WWIDEA, Inc. released under the MIT license

0 comments on commit 1167ba6

Please sign in to comment.