This file contains 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
$ cd /usr/src | |
$ wget http://nginx.org/download/nginx-0.8.52.tar.gz | |
$ tar xzvf ./nginx-0.8.52.tar.gz | |
$ rm ./nginx-0.8.52.tar.gz | |
$ gem install s3sync capistrano capistrano-ext passenger --no-ri --no-rdoc | |
$ passenger-install-nginx-module | |
# Automatically download and install Nginx? 2. No: I want to customize my Nginx installation | |
# Where is your Nginx source code located?: /usr/src/nginx-0.8.52 | |
# Where do you want to install Nginx to?: /opt/nginx |
This file contains 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 WebmoneyController < ApplicationController | |
before_filter :authenticate_users_list!, :except => [:result, :success, :fail] | |
before_filter :parse_payment_params, :only => [:result, :success, :fail] | |
before_filter :valid_payment, :only => [:result] | |
# Отображаем форму ввода депозита для webmoney, может быть с заранее введенной суммой (amount) (с клиента) | |
def add | |
if request.get? | |
@gateway = UsersPaymentsGateways.find_by_tech("webmoney") | |
@amount = !params[:amount].nil? ? params[:amount] : "10.00" |