h1. LaunchingSoon LaunchingSoon 是一个插件,可帮助 Rails 项目在正式发布之前管理专用的即将发布页面。
h1. LaunchingSoon LaunchingSoon 是一个插件,可帮助 Rails 项目在正式发布之前管理专用的即将发布页面。
h1. LaunchingSoon
Launching soon is a plugin that helps rails projects to manage a dedicated launching soon page before the actual launch date. The plugin also collects email from potential customers.
"Click Here":http://launching-soon.heroku.com/ to see live Demo. You can download Demo application from "https://github.com/Satish/Launching-Soon-Demo":https://github.com/Satish/Launching-Soon-Demo
Options available to store subscriber's email addresses are:
h2. Pre-requisites
You need an account (API Key and List ID) with:
h2. Dependencies
If you are using Campaign Monitor this plugin requires the following gems:
gnumarcelo-campaigning sudo gem install gnumarcelo-campaigning -s http://gems.github.com
dependencies for gnumarcelo-campaigning: Soap4r
sudo gem install soap4r
h2. Installation
The latest version is available on GitHub. There are a few options for installing LaunchingSoon.
Install as a Rails plugin:
script/plugin install git://github.com/Satish/launching_soon.git
Clone from the Github repository:
git clone git://github.com/Satish/launching_soon.git
h2. Configuration
Configuration is done via @RAILS_ROOT/config/launching_soon.yml@.
The options that you must specify are:
OR
mail_chimp_api_key and mail_chimp_list_id
OR
csv_file_nameExample configuration (RAILS_ROOT/config/launching_soon.yml)
html_file_name : launching_soon.html.erb # launching soon page contants (app/views/launching_soon.html.erb) css_file_name : launching_soon.css # stylesheet for launching soon page (public/stylesheets/launching_soon.css) option_to_store_email : csv # option are : csv | campaign_monitor | mail_chimp | db campaign_monitor_api_key : put_here_your_api_key # CAMPAIGN_MONITOR_API_KEY campaign_monitor_list_id : put_here_your_list_id # CAMPAIGN_MONITOR_LIST_ID mail_chimp_api_key : put_here_your_api_key # MAIL_CHIMP_API_KEY mail_chimp_list_id : put_here_your_list_id # MAIL_CHIMP_LIST_ID csv_file_name : data.csv # file to store email addresses of the subscribers (public/data.csv)
h2. Usage
Step 1 : Include the LaunchingSoon in ApplicationController:
class ApplicationController [:create] ... end
OR, alternatively run the following command
ruby script/generate launching_soon_routes
Step 3 : Generate migration to add news_letter_subscribers table
class CreateNewsLetterSubscribers < ActiveRecord::Migration def self.up create_table :news_letter_subscribers do |t| t.string :email t.timestamps end add_index :news_letter_subscribers, :email end
def self.down drop_table :news_letter_subscribers end end
OR, alternatively run the following command
rake db:migrate:launching_soon
h2. Issue Tracker
Please submit any bugs or annoyances on the lighthouse tracker at
Copyright (c) 2009 [[email protected]], released under the MIT license
暂无开放 Issues,或尚未同步最近议题。