Coder Social home page Coder Social logo

rails_page_comment's Introduction

Rails Page Comment

By xuzh

Features

Write comment on the page.

Installation

For basic usage just include rails_page_comment gem:

gem 'rails_page_comment'

How generate config files

rails generate rails_page_comment:install

Setting

Use initializer to set Features

To use set it show on the page or not, add this to an initializer.

# in config/initializers/rails_page_comment.rb

RailsPageComment.setup do |config|

  # show comment on page or not
  config.show_on_page = true

  # Custom send mail class and methods
  config.notify_changes_class_name  = "RailsPageComment::NotifyChanges"
  config.notify_changes_method_name = [:notice_changes]

  # After Changed send email's recipients
  config.recipient_email = ["[email protected]"]

  # After Changed send email from
  config.email_from = ["[email protected]"]

  # text_area size cols, default: 90
  # config.text_area_cols = 90
  # config.text_area_rows = 20


end

Configuring mailer views

We built RailsPageComment to help you quickly develop an application that uses writing comment and send email. However, we don't want to be in your way when you need to customize it.

Since RailsPageComment is an engine, all its views are packaged inside the gem. These views will help you get started, but after some time you may want to change them. If this is the case, you just need to invoke the following generator, and it will copy a mailer view to your application:

rails generate rails_page_comment:mailer_views

##Usage

class ApplicationController < ActionController::Base

  page_comment_resource

end

This project rocks and uses MIT-LICENSE.

rails_page_comment's People

Contributors

xuzh86 avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

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.