Giter Club home page Giter Club logo

hyalin's Introduction

Hyalin (paper)

A Rails 4+ Engine providing a basic contact form.

Requirements

Hyalin requires:

  • Ruby >= 2.0.0
  • Rails >= 4.0.0

It is also recommended to use SimpleForm in order to hook into your apps custom form builders. Heavily inspired on jdutil/contact_us

Installation

In your Gemfile, add the following dependencies:

gem 'hyalin', '~> 0.1.0'

From Rails.root in your Terminal run:

bundle
bundle exec rake hyalin:install

In config/initializers/hyalin.rb modify:

config.mailer_to = "[email protected]"

Change to the email address you would like to receive the form submissions at for example:

config.mailer_to = "[email protected]"

By default the emails from field will be the email entered by the user to easily reply, but this may not be allowed if your required to verify your sending email addresses. You may also specify an email address for the notification emails from field:

config.mailer_from = "[email protected]"

Views

To copy the view files to app/views/hyalin, and customize them to suit your needs run:

bundle exec rake hyalin:copy_views

Locales

To copy the locale files to config/locales/hyalin.*.yml, and customize them to suit your needs run:

bundle exec rake hyalin:copy_locales

Please feel free to submit your own locales so that other users will hopefully find this gem more useful in your language.

Usage

Visit your website and navigate to /messages/new to see the form in action.

Issues

Please report any bugs or feature requests to the Github issues page @ https://github.com/indefinido/hyalin/issues

This project rocks and uses WTFP-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.