github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

vinsol / Launching-Soon

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 160
    • 5
  • Source
  • Commits
  • Network (5)
  • Issues (0)
  • Downloads (0)
  • Wiki (2)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.
  cancel

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Added database table as a store for emails 
Satish (author)
Mon Oct 26 00:54:29 -0700 2009
commit  caa8472077be33e1fcf0f85b2a15a5b97c175613
tree    66d545d8d189473176502b619677c8dfbc6184c0
parent  75b07681cda1f4834fd16b8547290e340404a2f4
Launching-Soon /
name age
history
message
file MIT-LICENSE Loading commit data...
file README
file README.textile
file Rakefile
directory config/
directory generators/
file init.rb
file install.rb
directory lib/
directory public/
directory tasks/
directory test/
file uninstall.rb
README.textile

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.

Options available to store subscriber’s email addresses are:

  1. CSV file (public/data.csv).
  2. Campaign Monitor (www.campaignmonitor.com).
  3. Mail Chimp (www.mailchimp.com).
  4. Database.

Pre-requisites

You need an account (API Key and List ID) with:

  • Campaign Monitor If you want to use Campaign Monitor as a store for subscriber’s email address (http://www.signup.createsend.com/signup).
  • MailChimp If you want to use MailChimp as a store for subscriber’s email address (http://www.mailchimp.com/signup/).

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

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

Configuration

Configuration is done via RAILS_ROOT/config/launching_soon.yml.

The options that you must specify are:

  1. css_file_name
  2. html_file_name
  3. option_to_store_email (default: csv)
  4. campaign_monitor_api_key and campaign_monitor_list_id
    OR
    mail_chimp_api_key and mail_chimp_list_id
    OR
    csv_file_name

    Example 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)
    

Usage

Step 1 : Include the LaunchingSoon in ApplicationController:


class ApplicationController < ActionController::Base
  include LaunchingSoon # if Rails.env.development?
  ...
end

Step 2 : Add following routes to your applications routes.rb


ActionController::Routing::Routes.draw do |map|
  map.resources :news_letter_subscribers, :only => [: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

Issue Tracker

Please submit any bugs or annoyances on the lighthouse tracker at

https://vinsol.lighthouseapp.com/projects/31867-launching-soon/overview

Copyright © 2009 [satish@vinsol.com], released under the MIT license

Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server