Skip to content

Instantly share code, notes, and snippets.

@madcatbiz
madcatbiz / installation.sh
Created September 1, 2011 09:01 — forked from elvuel/installation.sh
Nginx+passenger application config: ssl redirection, http headers, passenger optimal settings. see details: http://mikhailov.posterous.com/nginx
$ 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
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"