Socket
Book a DemoInstallSign in
Socket

feedbacks

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

feedbacks

0.0.2
bundlerRubygems
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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.