Project

feedbacks

0.0
No commit activity in last 3 years
No release in over 3 years
Contact us jquery-ui dialog window. Feedback is saving in the database and sends to your email.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

 Project Readme

Feedbacks¶ ↑

Gem adds the contact us dialog window to your Rails application. Gem uses jquery-ui/dialog to work.

Engine tested on rails 3.2.

How to use it:

  1. Add to Gemfile:

    gem 'feedbacks'
    
  2. Setup ActionMailer::Base.smtp_settings

  3. Run and change in generated initializers/feedbacks.rb :from and :to emails:

    rails generate feedbacks:initializer
    
  4. Run:

    rake feedbacks:install:migrations && rake db:migrate
  5. Add to config/routes.rb:

    mount Feedbacks::Engine => "/feedbacks"
    
  6. Add to view where you need feedback form:

    <div id='feedback-form' title='Feedback form title' >
      <%= link_to "Contact us", feedbacks.new_feedback_sender_path, :remote => true, :class => 'feedback' %>
    </div>
  7. Add to application.js and application.css:

    require feedbacks/application
    
  8. Thats all. Feedback saves in feedbacks_feedbacks table in database and then sends to your :to email.

Tests are placed in test/dummy.

To try this engine goto test/dummy and enjoy it in the localhost by running rails server.

Using at www.rbcitynews.ru/

This project rocks and uses MIT-LICENSE.