Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

feedbacks

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

feedbacks

bundlerRubyGems.org
Version
0.0.2
Version published
Maintainers
1
Created
Source

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

  • Add to Gemfile:

    gem 'feedbacks'

  • Setup ActionMailer::Base.smtp_settings

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

    rails generate feedbacks:initializer

  • Run:

    rake feedbacks:install:migrations && rake db:migrate

  • Add to config/routes.rb:

    mount Feedbacks::Engine => "/feedbacks"

  • Add to view where you need feedback form:

    <%= link_to "Contact us", feedbacks.new_feedback_sender_path, :remote => true, :class => 'feedback' %>
  • Add to application.js and application.css:

    require feedbacks/application

  • 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 http://www.rbcitynews.ru/

This project rocks and uses MIT-LICENSE.

FAQs

Package last updated on 26 Jul 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts