From d7ca496a95e8ad483f98c2ff6708a4f6066f6eca Mon Sep 17 00:00:00 2001 From: Jesse Grant Date: Mon, 14 Jan 2013 17:20:22 -0500 Subject: [PATCH] documentation of the payment optoins component --- README.md | 7 ++++++- config/settings.yml | 4 ++-- db/schema.rb | 4 ++-- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 5823334..f8fa503 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Selfstarter is a starting point. We made some specific choices with Selfstarter * We use Amazon Payments for payments. You can use [Stripe](https://stripe.com) or [WePay](https://www.wepay.com/). We used Kickstarter's awesome ```amazon_flex_pay``` gem. * We collect multi-use tokens from customers with Amazon Payments - this let's us collect payment information without charging the customer until we are ready to ship * Selfstarter doesn't come with any authentication, administration, mailers or analytics tools. We recommend adding a basic set of these so that you can message backers and manage orders. - +* There is a payment options component that allows you to define different packages or levels for people to puchase/support at. You can turn it on and off with a configuration setting. ## Getting Started *Note: This assumes you have Ruby 1.9.2 or later installed properly and have a basic working knowledge of how to use RubyGems* @@ -32,6 +32,11 @@ Now let's create the database: rake db:migrate ``` +If you're using the payment options component (use_payment_options = true in settings.yml) then need to seed some data for the options: +```bash +rake db:seed +``` + Let's get it running: ```bash rails s diff --git a/config/settings.yml b/config/settings.yml index 76670a1..09200c4 100644 --- a/config/settings.yml +++ b/config/settings.yml @@ -44,7 +44,7 @@ price: 19.95 # if use_payment_options is set to true, then a set of radio buttons will be displayed with various payment options. # There is a PaymentOption model for storing info about payment options. To set up your payment options you should -# put code in seeds.rb +# put code in seeds.rb, then run rake db:seed use_payment_options: true payment_description: "You really should change this text because people will see it on Amazon's order page!!!!!" @@ -95,4 +95,4 @@ google_id: "1234567890" # If you want to change the images for the key points (e.g. "Kickstarter is not a store") # They're in app/assets/images/#{pointer_number}-background.png # So, the first key point, it's at app/assets/images/1-background.png -# Alternatively, change it up in app/assets/stylesheets/homepage/key_points.css.scss \ No newline at end of file +# Alternatively, change it up in app/assets/stylesheets/homepage/key_points.css.scss diff --git a/db/schema.rb b/db/schema.rb index 122de31..d0b7a92 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -44,8 +44,8 @@ ActiveRecord::Schema.define(:version => 20130107010733) do t.string "shipping_desc" t.string "delivery_desc" t.integer "limit" - t.datetime "created_at", :null => false - t.datetime "updated_at", :null => false + t.datetime "created_at", :null => false + t.datetime "updated_at", :null => false end create_table "users", :force => true do |t|