This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Subscription < ActiveRecord::Base | |
| belongs_to :user | |
| attr_accessible :user_id, :stripe_card_token | |
| def save_with_payment(plan, email) | |
| if valid? | |
| customer = Stripe::Customer.create(description: 'ta@gmail.com', plan: '1', card: stripe_card_token) | |
| self.stripe_customer_token = customer.id | |
| save! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div class="account-container register"> | |
| <div class="content clearfix"> | |
| <h1>Create Your Account</h1> | |
| <div class="login-fields"> | |
| <%= form_for(@subscription) do |f| %> | |
| <%= f.hidden_field :stripe_card_token %> | |
| <%= text_field_tag :card_number, nil, name: nil, :placeholder => "Card Number" %></br> | |
| <%= text_field_tag :card_code, nil, name: nil, :placeholder => "CVV Code" %></br> | |
| <h3>Expiration:</h3> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FATAL: No nodes returned from search! | |
| *** done: (Job{provision_server} | ProvisionServer | [10, "test098@gmail.com"]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| load 'deploy/assets' | |
| require 'bundler/capistrano' | |
| set :rake, "/usr/local/rvm/gems/ruby-1.9.3-p194@global/bin/rake" | |
| set :application, "Cloud Poker Database" | |
| set :repository, "ssh://git@50.56.174.223/home/git/cloud_poker_db_source/" | |
| set :scm, :git | |
| # Or: `accurev`, `bzr`, `cvs`, `darcs`, `git`, `mercurial`, `perforce`, `subversion` or `none` | |
| set :deploy_to, "/var/www/" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @provisioned_server = rackspace.create_server(:name => name, :imageId => '125' , :flavorId => @plan.to_i) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| DEPRECATION WARNING: ActiveAdmin::Dashboard is deprecated and will be removed in the next version | |
| Exiting | |
| /home/test/.rvm/gems/ruby-1.9.3-rc1/gems/activerecord-3.2.3/lib/active_record/associations/builder/collection_association.rb:35:in `[]': can't convert Symbol into Integer (TypeError) | |
| from /home/test/.rvm/gems/ruby-1.9.3-rc1/gems/activerecord-3.2.3/lib/active_record/associations/builder/collection_association.rb:35:in `wrap_block_extension' | |
| from /home/test/.rvm/gems/ruby-1.9.3-rc1/gems/activerecord-3.2.3/lib/active_record/associations/builder/collection_association.rb:22:in `build' | |
| from /home/test/.rvm/gems/ruby-1.9.3-rc1/gems/activerecord-3.2.3/lib/active_record/autosave_association.rb:139:in `build' | |
| from /home/test/.rvm/gems/ruby-1.9.3-rc1/gems/activerecord-3.2.3/lib/active_record/associations/builder/has_many.rb:10:in `build' | |
| from /home/test/.rvm/gems/ruby-1.9.3-rc1/gems/activerecord-3.2.3/lib/active_record/associations/builder/collection_association.rb:13:in `build' | |
| from /home/test/.rvm/gems/ruby |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| user git; | |
| worker_processes 1; | |
| events { | |
| worker_connections 1024; | |
| } | |
| http { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| anthony@localhost:~/rails_projects/CLOUD_POKER_DB$ git push live master | |
| git@50.56.174.223's password: | |
| Everything up-to-date | |
| anthony@localhost:~/rails_projects/CLOUD_POKER_DB$ vi config/deploy.rb | |
| anthony@localhost:~/rails_projects/CLOUD_POKER_DB$ cap deploy:update | |
| * executing `deploy:update' | |
| ** transaction: start | |
| * executing `deploy:update_code' | |
| executing locally: "git ls-remote ssh://git@50.56.174.223/home/git/cloud_poker_db_source/ master" | |
| git@50.56.174.223's password: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'bundler/capistrano' | |
| require "rvm/capistrano" # Load RVM's capistrano plugin. | |
| require "capistrano-resque" | |
| set :rake, "/home/git/.rvm/gems/ruby-1.9.3-p194@global/bin/rake" | |
| set :application, "Cloud Poker Database" | |
| set :repository, "ssh://git@50.56.174.223/home/git/cloud_poker_db_source/" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'bundler/capistrano' | |
| require "rvm/capistrano" # Load RVM's capistrano plugin. | |
| require "capistrano-resque" | |
| set :rake, "/home/git/.rvm/gems/ruby-1.9.3-p194@global/bin/rake" | |
| set :application, "Cloud Poker Database" | |
| set :repository, "ssh://git@50.56.174.223/home/git/cloud_poker_db_source/" |