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
ArgumentError in Projects#new | |
Showing app/views/projects/_form.html.haml where line #1 raised: | |
wrong number of arguments (2 for 1) | |
Extracted source (around line #1): | |
1: = form.error_messages | |
2: | |
3: %dl |
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
begin | |
require File.join(File.dirname(__FILE__), 'lib', 'haml') # From here | |
rescue LoadError | |
begin | |
require 'haml' # From gem | |
rescue LoadError => e | |
# gems:install may be run to install Haml with the skeleton plugin | |
# but not the gem itself installed. | |
# Don't die if this is the case. | |
raise e unless defined?(Rake) && Rake.application.top_level_tasks.include?('gems:install') |
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
credit_card = ActiveMerchant::Billing::CreditCard.new(:number => '4111111111111111', :month => '8',:year => '2013', :first_name => 'Tobias', :last_name => 'Luetke', :verification_value => '123') | |
gateway = ActiveMerchant::Billing::OgoneGateway.new(:login => "xxx", :user => "xxx", :password => "xxx") | |
response = gateway.purchase(10000, credit_card, :order_id => "1", :store => "abcdefg") | |
=> #<ActiveMerchant::Billing::Response:0x007f830ac655e0 @params={"orderID"=>"137", "PAYID"=>"12303272", "NCSTATUS"=>"0", "NCERROR"=>"0", "ACCEPTANCE"=>"test123", "STATUS"=>"9", "IPCTY"=>"99", "CCCTY"=>"US", "ECI"=>"7", "CVCCheck"=>"NO", "AAVCheck"=>"NO", "VC"=>"NO", "amount"=>"100", "currency"=>"EUR", "PM"=>"CreditCard", "BRAND"=>"VISA", "NCERRORPLUS"=>"!"}, @message="The transaction was successful", @success=true, @test=true, @authorization="12303272;SAL", @fraud_review=nil, @avs_result={"code"=>"R", "message"=>"System unavailable.", "street_match"=>nil, "postal_match"=>nil}, @cvv_result={"code"=>"P", "message"=>"Not Proces |
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
[leondu@megi:ruby-china(master)]$ rake stats | |
+----------------------+-------+-------+---------+---------+-----+-------+ | |
| Name | Lines | LOC | Classes | Methods | M/C | LOC/M | | |
+----------------------+-------+-------+---------+---------+-----+-------+ | |
| Controllers | 1579 | 1253 | 34 | 186 | 5 | 4 | | |
| Helpers | 370 | 307 | 0 | 43 | 0 | 5 | | |
| Models | 1471 | 1098 | 26 | 94 | 3 | 9 | | |
| Libraries | 521 | 365 | 9 | 26 | 2 | 12 | | |
| Model specs | 902 | 745 | 3 | 0 | 0 | 0 | | |
| Controller specs | 723 | 615 | 0 | 0 | 0 | 0 | |
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
nodename nor servname provided, or not known: Undefined error: 0 | |
My traceroute [v0.75] | |
megi.local (0.0.0.0) Thu Aug 16 16:53:40 2012 | |
Keys: Help Display mode Restart statistics Order of fields quit | |
Packets Pings | |
Host Loss% Snt Last Avg Best Wrst StDev | |
1. 10.8.0.1 0.0% 5 175.8 201.8 175.8 237.0 29.3 | |
2. router1-fmt.linode.com 0.0% 4 173.8 190.0 173.8 208.4 15.2 | |
3. 10gigabitethernet2-3.core1. 0.0% 4 580.4 1654. 580.4 2323. 797.2 | |
4. 10gigabitethernet1-1.core1. 0.0% 4 175.4 216.1 175.4 235.8 27.8 |
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
HOST: megi.local Loss% Snt Last Avg Best Wrst StDev | |
1. 192.168.0.1 0.0% 10 1.9 1.7 1.1 2.1 0.4 | |
2. 1.54.137.219.broad.gz.gd.dyn 0.0% 10 9.2 15.6 7.7 43.2 13.3 | |
3. 121.8.222.125 0.0% 10 8.2 8.5 7.5 10.2 0.9 | |
4. 61.144.0.25 0.0% 10 7.9 7.9 7.1 9.0 0.5 | |
5. 61.144.3.2 0.0% 10 8.8 9.3 7.8 12.0 1.4 | |
6. 202.97.33.230 0.0% 10 7.7 19.0 7.7 51.0 13.3 | |
7. 202.97.60.42 0.0% 10 8.6 9.3 8.6 10.4 0.7 | |
8. 202.97.52.150 0.0% 10 184.6 188.9 184.3 205.8 7.6 | |
9. 202.97.50.42 0.0% 10 170.2 170.3 170.2 170.7 0.2 |