Giter Site home page Giter Site logo

feedbacker's Introduction

Gem Version Code Climate

Feedbacker

Feedbacker provides a tab for users to contact developers from within the application

Assumptions

Feedbacker assumes that you're using...

  • At least Rails 3.1.3
  • The Rails Asset Pipeline
  • Jquery
  • That you have a User class with email and name methods (name can be configured to something else)
  • and probably some other things that we've failed to mention.

Installation

  1. Add the following to your Gemfile.

     gem :feedbacker
    
  2. Run bundle install

  3. Add the following line to your application layout.

     <%= 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 %>
    
  5. Add the following line at at appropriate position in your application layout.

     <%= 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
    

    For Rails 4.2:

     config.paths['db/migrate'].concat(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 = '[email protected]'
    

OR

    Feedbacker::SETTINGS.update do |settings|
      settings.email_to = '[email protected]'
      settings.user_name_method = :name             # default value
      settings.email_prefix = '[FEEDBACKER]'        # default value
    end
  1. Rails 4.2: Add this line to the top of your routes file.

     resources :remarks, :only => [:create]
    

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.