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 TransactionsController < ApplicationController | |
def payment | |
amount = BigDecimal.new(params[:amount]) | |
contract = Contract.find_by_ra_num(params[:ra_num]) | |
case params[:payment_method] | |
when 'creditcard' | |
#use existing creditcard transaction | |
if params[:id].present? | |
transaction = Transaction.find(params[:id]) |
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
ruby-1.9.2-p180 :001 > require 'active_support' | |
=> true | |
ruby-1.9.2-p180 :002 > [0, 1, 2].sum | |
NoMethodError: undefined method `sum' for [0, 1, 2]:Array |
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
## config.ru | |
require 'rubygems' | |
require 'bundler' | |
require './itest' | |
Bundler.require | |
run Sinatra::Application |
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
alert "hi" |
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
$('#location_fee_form').dialog({modal: true, autoOpen:false, title:'Fee', width: '450px'}) | |
$('#location_fee_form').html("<%= escape_javascript(render 'form') %>") | |
$('#location_fee_pricing, #location_fee_min_fee_pricing').chosen() | |
$('#location_fee_form').dialog('open') | |
$('#location_fee_name').focus() | |
$('.button').button() | |
show_if_min_fee_apply = -> | |
if $('#location_fee_min_fee_apply').is(':checked') | |
$('.show_if_min_fee_apply').show() | |
else |
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
source 'http://rubygems.org' | |
gem 'rails', '3.1.3' | |
# Bundle edge Rails instead: | |
# gem 'rails', :git => 'git://github.com/rails/rails.git' | |
gem 'haml' | |
gem 'acts_as_list' |
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
if params[:pickup_date].present? || params[:pickup_time].present? || params[:return_date].present? || params[:return_time].present? | |
end |
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
Installing ffi (0.6.3) with native extensions | |
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. | |
/home/klin/.rvm/rubies/ruby-1.9.3-p0/bin/ruby extconf.rb | |
extconf.rb:6: Use RbConfig instead of obsolete and deprecated Config. | |
checking for ffi_call() in -lffi... yes | |
checking for ffi_prep_closure()... yes | |
checking for ffi_raw_call()... yes | |
checking for ffi_prep_raw_closure()... yes | |
checking for rb_thread_blocking_region()... yes |
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
klin@ubuntu:/var/www/bouncer/current$ rails console production | |
/home/klin/.rvm/rubies/ruby-1.9.2-p290/bin/ruby: symbol lookup error: /var/www/bouncer/shared/bundle/ruby/1.9.1/gems/mysql2-0.3.11/lib/mysql2/mysql2.so: undefined symbol: rb_wait_for_single_fd |
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
=> Booting WEBrick | |
=> Rails 3.2.0 application starting in development on http://0.0.0.0:3000 | |
=> Call with -d to detach | |
=> Ctrl-C to shutdown server | |
Exiting | |
/Users/omnix/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.0/lib/active_support/core_ext/module/aliasing.rb:31:in `alias_method': undefined method `before_dispatch' for class `Rails::Rack::Logger' (NameError) | |
from /Users/omnix/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.0/lib/active_support/core_ext/module/aliasing.rb:31:in `alias_method_chain' | |
from /Users/omnix/Documents/development/rails/reznet/config/initializers/quiet_assets.rb:6:in `block in <top (required)>' | |
from /Users/omnix/Documents/development/rails/reznet/config/initializers/quiet_assets.rb:2:in `class_eval' | |
from /Users/omnix/Documents/development/rails/reznet/config/initializers/quiet_assets.rb:2:in `<top (required)>' |
OlderNewer