opay 1.0.0.beta → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1509,3 +1509,964 @@ Connecting to database specified by database.yml
1509
1509
  Connecting to database specified by database.yml
1510
1510
  Connecting to database specified by database.yml
1511
1511
  Connecting to database specified by database.yml
1512
+ Connecting to database specified by database.yml
1513
+
1514
+
1515
+ Started GET "/" for 127.0.0.1 at 2013-04-24 13:51:05 +0200
1516
+
1517
+ ActionController::RoutingError (No route matches [GET] "/"):
1518
+ actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
1519
+ actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
1520
+ railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
1521
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
1522
+ activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
1523
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
1524
+ actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
1525
+ rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
1526
+ rack (1.4.5) lib/rack/runtime.rb:17:in `call'
1527
+ activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
1528
+ rack (1.4.5) lib/rack/lock.rb:15:in `call'
1529
+ actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
1530
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
1531
+ railties (3.2.13) lib/rails/application.rb:223:in `call'
1532
+ rack (1.4.5) lib/rack/content_length.rb:14:in `call'
1533
+ railties (3.2.13) lib/rails/rack/log_tailer.rb:17:in `call'
1534
+ rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
1535
+ /Users/mariusz/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
1536
+ /Users/mariusz/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
1537
+ /Users/mariusz/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
1538
+
1539
+
1540
+ Rendered /Users/mariusz/.rvm/gems/ruby-1.9.3-p0@payments_engine/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (34.6ms)
1541
+
1542
+
1543
+ Started GET "/" for 127.0.0.1 at 2013-04-24 13:51:35 +0200
1544
+ Processing by OrdersController#index as HTML
1545
+ Order Load (39.1ms) SELECT "orders".* FROM "orders" 
1546
+ Rendered orders/index.html.erb within layouts/application (1.1ms)
1547
+ Compiled application.css (1ms) (pid 46805)
1548
+ Completed 500 Internal Server Error in 1144ms
1549
+
1550
+ ActionView::Template::Error (couldn't find file 'jquery'
1551
+ (in /Users/mariusz/projekty/rails/opay/spec/dummy/app/assets/javascripts/application.js:13)):
1552
+ 3: <head>
1553
+ 4: <title>Dummy</title>
1554
+ 5: <%= stylesheet_link_tag "application", :media => "all" %>
1555
+ 6: <%= javascript_include_tag "application" %>
1556
+ 7: <%= csrf_meta_tags %>
1557
+ 8: </head>
1558
+ 9: <body>
1559
+ app/views/layouts/application.html.erb:6:in `_app_views_layouts_application_html_erb__2834171036792740793_70302624147620'
1560
+ app/controllers/orders_controller.rb:7:in `index'
1561
+
1562
+
1563
+ Rendered /Users/mariusz/.rvm/gems/ruby-1.9.3-p0@payments_engine/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.4ms)
1564
+ Rendered /Users/mariusz/.rvm/gems/ruby-1.9.3-p0@payments_engine/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.0ms)
1565
+ Rendered /Users/mariusz/.rvm/gems/ruby-1.9.3-p0@payments_engine/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (11.0ms)
1566
+ Connecting to database specified by database.yml
1567
+
1568
+
1569
+ Started GET "/" for 127.0.0.1 at 2013-04-24 13:52:51 +0200
1570
+ Processing by OrdersController#index as HTML
1571
+ Order Load (31.6ms) SELECT "orders".* FROM "orders" 
1572
+ Rendered orders/index.html.erb within layouts/application (5.8ms)
1573
+ Compiled application.js (2ms) (pid 47443)
1574
+ Completed 200 OK in 408ms (Views: 266.0ms | ActiveRecord: 58.3ms)
1575
+
1576
+
1577
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2013-04-24 13:52:52 +0200
1578
+ Served asset /scaffold.css - 200 OK (5ms)
1579
+
1580
+
1581
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-04-24 13:52:52 +0200
1582
+ Served asset /jquery.js - 304 Not Modified (40ms)
1583
+
1584
+
1585
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-04-24 13:52:52 +0200
1586
+ Served asset /jquery_ujs.js - 304 Not Modified (1ms)
1587
+
1588
+
1589
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-04-24 13:52:52 +0200
1590
+ Served asset /application.js - 200 OK (3ms)
1591
+
1592
+
1593
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-04-24 13:52:52 +0200
1594
+ Served asset /application.css - 200 OK (3ms)
1595
+
1596
+
1597
+ Started GET "/orders/new" for 127.0.0.1 at 2013-04-24 13:52:55 +0200
1598
+ Processing by OrdersController#new as HTML
1599
+ Rendered orders/_form.html.erb (201.4ms)
1600
+ Rendered orders/new.html.erb within layouts/application (282.2ms)
1601
+ Completed 200 OK in 311ms (Views: 305.0ms | ActiveRecord: 0.0ms)
1602
+
1603
+
1604
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-04-24 13:52:55 +0200
1605
+ Served asset /jquery.js - 304 Not Modified (0ms)
1606
+
1607
+
1608
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2013-04-24 13:52:55 +0200
1609
+ Served asset /scaffold.css - 304 Not Modified (0ms)
1610
+
1611
+
1612
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-04-24 13:52:55 +0200
1613
+ Served asset /application.js - 304 Not Modified (0ms)
1614
+
1615
+
1616
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-04-24 13:52:55 +0200
1617
+ Served asset /application.css - 304 Not Modified (0ms)
1618
+
1619
+
1620
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-04-24 13:52:55 +0200
1621
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
1622
+
1623
+
1624
+ Started POST "/orders" for 127.0.0.1 at 2013-04-24 13:53:08 +0200
1625
+ Processing by OrdersController#create as HTML
1626
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"sYtpdAkBiSPH0VVmuJaonVtw4WeS/h2Atq0ssPS25Qg=", "order"=>{"name"=>"order 1", "amount"=>"10"}, "commit"=>"Create Order"}
1627
+  (0.1ms) begin transaction
1628
+ SQL (134.0ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", "10"], ["created_at", Wed, 24 Apr 2013 11:53:08 UTC +00:00], ["name", "order 1"], ["updated_at", Wed, 24 Apr 2013 11:53:08 UTC +00:00]]
1629
+  (4.7ms) commit transaction
1630
+ Redirected to http://0.0.0.0:3000/orders/1
1631
+ Completed 302 Found in 144ms (ActiveRecord: 138.8ms)
1632
+
1633
+
1634
+ Started GET "/orders/1" for 127.0.0.1 at 2013-04-24 13:53:08 +0200
1635
+ Processing by OrdersController#show as HTML
1636
+ Parameters: {"id"=>"1"}
1637
+ Order Load (0.3ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]]
1638
+ Rendered orders/show.html.erb within layouts/application (2.5ms)
1639
+ Completed 200 OK in 45ms (Views: 42.3ms | ActiveRecord: 0.3ms)
1640
+
1641
+
1642
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-04-24 13:53:08 +0200
1643
+ Served asset /application.css - 304 Not Modified (0ms)
1644
+
1645
+
1646
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2013-04-24 13:53:08 +0200
1647
+ Served asset /scaffold.css - 304 Not Modified (0ms)
1648
+
1649
+
1650
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-04-24 13:53:08 +0200
1651
+ Served asset /jquery.js - 304 Not Modified (0ms)
1652
+
1653
+
1654
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-04-24 13:53:08 +0200
1655
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
1656
+
1657
+
1658
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-04-24 13:53:08 +0200
1659
+ Served asset /application.js - 304 Not Modified (0ms)
1660
+
1661
+
1662
+ Started GET "/orders" for 127.0.0.1 at 2013-04-24 13:53:11 +0200
1663
+ Processing by OrdersController#index as HTML
1664
+ Order Load (0.2ms) SELECT "orders".* FROM "orders"
1665
+ Rendered orders/index.html.erb within layouts/application (1.6ms)
1666
+ Completed 200 OK in 18ms (Views: 16.2ms | ActiveRecord: 0.2ms)
1667
+
1668
+
1669
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-04-24 13:53:11 +0200
1670
+ Served asset /application.css - 304 Not Modified (0ms)
1671
+
1672
+
1673
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-04-24 13:53:11 +0200
1674
+ Served asset /jquery.js - 304 Not Modified (0ms)
1675
+
1676
+
1677
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-04-24 13:53:11 +0200
1678
+ Served asset /application.js - 304 Not Modified (0ms)
1679
+
1680
+
1681
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-04-24 13:53:11 +0200
1682
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
1683
+
1684
+
1685
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2013-04-24 13:53:11 +0200
1686
+ Served asset /scaffold.css - 304 Not Modified (0ms)
1687
+
1688
+
1689
+ Started GET "/orders/1" for 127.0.0.1 at 2013-04-24 13:53:19 +0200
1690
+ Processing by OrdersController#show as HTML
1691
+ Parameters: {"id"=>"1"}
1692
+ Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]]
1693
+ Rendered orders/show.html.erb within layouts/application (0.6ms)
1694
+ Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.1ms)
1695
+
1696
+
1697
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2013-04-24 13:53:19 +0200
1698
+ Served asset /scaffold.css - 304 Not Modified (0ms)
1699
+
1700
+
1701
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-04-24 13:53:19 +0200
1702
+ Served asset /jquery.js - 304 Not Modified (0ms)
1703
+
1704
+
1705
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-04-24 13:53:19 +0200
1706
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
1707
+
1708
+
1709
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-04-24 13:53:19 +0200
1710
+ Served asset /application.css - 304 Not Modified (0ms)
1711
+
1712
+
1713
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-04-24 13:53:19 +0200
1714
+ Served asset /application.js - 304 Not Modified (0ms)
1715
+
1716
+
1717
+ Started GET "/orders/1" for 127.0.0.1 at 2013-04-24 13:54:36 +0200
1718
+ Processing by OrdersController#show as HTML
1719
+ Parameters: {"id"=>"1"}
1720
+ Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]]
1721
+ Rendered orders/show.html.erb within layouts/application (28.9ms)
1722
+ Completed 500 Internal Server Error in 58ms
1723
+
1724
+ ActionView::Template::Error (undefined method `payu_form_for' for #<#<Class:0x007f7f848d2740>:0x007f7f82773a18>):
1725
+ 10: <%= @order.amount %>
1726
+ 11: </p>
1727
+ 12:
1728
+ 13: <%= payu_form_for(@order) do |f| %>
1729
+ 14:
1730
+ 15: <% end %>
1731
+ 16:
1732
+ app/views/orders/show.html.erb:13:in `_app_views_orders_show_html_erb__3540414464078662255_70092813207540'
1733
+ app/controllers/orders_controller.rb:18:in `show'
1734
+
1735
+
1736
+ Rendered /Users/mariusz/.rvm/gems/ruby-1.9.3-p0@payments_engine/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.4ms)
1737
+ Rendered /Users/mariusz/.rvm/gems/ruby-1.9.3-p0@payments_engine/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.9ms)
1738
+ Rendered /Users/mariusz/.rvm/gems/ruby-1.9.3-p0@payments_engine/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (9.6ms)
1739
+ Connecting to database specified by database.yml
1740
+
1741
+
1742
+ Started GET "/orders/1" for 127.0.0.1 at 2013-04-24 13:59:32 +0200
1743
+ Processing by OrdersController#show as HTML
1744
+ Parameters: {"id"=>"1"}
1745
+ Order Load (30.9ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]]
1746
+ Rendered orders/show.html.erb within layouts/application (158.2ms)
1747
+ Completed 500 Internal Server Error in 370ms
1748
+
1749
+ ActionView::Template::Error (unknown attribute: session_id):
1750
+ 10: <%= @order.amount %>
1751
+ 11: </p>
1752
+ 12:
1753
+ 13: <%= payu_form_for(@order) do |f| %>
1754
+ 14:
1755
+ 15: <% end %>
1756
+ 16:
1757
+ app/views/orders/show.html.erb:13:in `_app_views_orders_show_html_erb__2842286153136912271_70185199437880'
1758
+ app/controllers/orders_controller.rb:18:in `show'
1759
+
1760
+
1761
+ Rendered /Users/mariusz/.rvm/gems/ruby-1.9.3-p0@payments_engine/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.3ms)
1762
+ Rendered /Users/mariusz/.rvm/gems/ruby-1.9.3-p0@payments_engine/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.9ms)
1763
+ Rendered /Users/mariusz/.rvm/gems/ruby-1.9.3-p0@payments_engine/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (10.0ms)
1764
+ Connecting to database specified by database.yml
1765
+
1766
+
1767
+ Started GET "/orders/1" for 127.0.0.1 at 2013-04-24 14:02:36 +0200
1768
+ Processing by OrdersController#show as HTML
1769
+ Parameters: {"id"=>"1"}
1770
+ Completed 500 Internal Server Error in 54ms
1771
+
1772
+ ActiveRecord::StatementInvalid (Could not find table 'orders'):
1773
+ app/controllers/orders_controller.rb:16:in `show'
1774
+
1775
+
1776
+ Rendered /Users/mariusz/.rvm/gems/ruby-1.9.3-p0@payments_engine/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.3ms)
1777
+ Rendered /Users/mariusz/.rvm/gems/ruby-1.9.3-p0@payments_engine/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.9ms)
1778
+ Rendered /Users/mariusz/.rvm/gems/ruby-1.9.3-p0@payments_engine/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (12.7ms)
1779
+ Connecting to database specified by database.yml
1780
+  (3.1ms) select sqlite_version(*)
1781
+  (2.4ms) CREATE TABLE "opay_payments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "payable_id" integer, "payable_type" varchar(255), "session_id" varchar(255), "provider" varchar(255), "amount" float, "finished" boolean DEFAULT 'f' NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1782
+  (1.6ms) CREATE INDEX "index_opay_payments_on_payable_id_and_payable_type" ON "opay_payments" ("payable_id", "payable_type")
1783
+  (1.5ms) CREATE TABLE "orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "amount" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1784
+  (1.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
1785
+  (38.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1786
+  (0.1ms) SELECT version FROM "schema_migrations"
1787
+  (69.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130326152550')
1788
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
1789
+ Connecting to database specified by database.yml
1790
+
1791
+
1792
+ Started GET "/orders/1" for 127.0.0.1 at 2013-04-24 14:03:01 +0200
1793
+ Processing by OrdersController#show as HTML
1794
+ Parameters: {"id"=>"1"}
1795
+ Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]]
1796
+ Completed 404 Not Found in 64ms
1797
+
1798
+ ActiveRecord::RecordNotFound (Couldn't find Order with id=1):
1799
+ app/controllers/orders_controller.rb:16:in `show'
1800
+
1801
+
1802
+ Rendered /Users/mariusz/.rvm/gems/ruby-1.9.3-p0@payments_engine/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.4ms)
1803
+ Rendered /Users/mariusz/.rvm/gems/ruby-1.9.3-p0@payments_engine/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.1ms)
1804
+ Rendered /Users/mariusz/.rvm/gems/ruby-1.9.3-p0@payments_engine/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (25.1ms)
1805
+
1806
+
1807
+ Started GET "/orders" for 127.0.0.1 at 2013-04-24 14:03:06 +0200
1808
+ Processing by OrdersController#index as HTML
1809
+ Order Load (0.2ms) SELECT "orders".* FROM "orders"
1810
+ Rendered orders/index.html.erb within layouts/application (1.4ms)
1811
+ Completed 200 OK in 137ms (Views: 135.1ms | ActiveRecord: 0.2ms)
1812
+
1813
+
1814
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-04-24 14:03:07 +0200
1815
+ Served asset /application.css - 304 Not Modified (2ms)
1816
+
1817
+
1818
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-04-24 14:03:07 +0200
1819
+ Served asset /jquery.js - 304 Not Modified (3ms)
1820
+
1821
+
1822
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2013-04-24 14:03:07 +0200
1823
+ Served asset /scaffold.css - 304 Not Modified (1ms)
1824
+
1825
+
1826
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-04-24 14:03:07 +0200
1827
+ Served asset /application.js - 304 Not Modified (4ms)
1828
+
1829
+
1830
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-04-24 14:03:07 +0200
1831
+ Served asset /jquery_ujs.js - 304 Not Modified (2ms)
1832
+
1833
+
1834
+ Started GET "/orders/new" for 127.0.0.1 at 2013-04-24 14:03:08 +0200
1835
+ Processing by OrdersController#new as HTML
1836
+ Rendered orders/_form.html.erb (8.1ms)
1837
+ Rendered orders/new.html.erb within layouts/application (25.4ms)
1838
+ Completed 200 OK in 47ms (Views: 40.5ms | ActiveRecord: 0.0ms)
1839
+
1840
+
1841
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-04-24 14:03:08 +0200
1842
+ Served asset /application.css - 304 Not Modified (0ms)
1843
+
1844
+
1845
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2013-04-24 14:03:08 +0200
1846
+ Served asset /scaffold.css - 304 Not Modified (0ms)
1847
+
1848
+
1849
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-04-24 14:03:08 +0200
1850
+ Served asset /application.js - 304 Not Modified (0ms)
1851
+
1852
+
1853
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-04-24 14:03:08 +0200
1854
+ Served asset /jquery.js - 304 Not Modified (0ms)
1855
+
1856
+
1857
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-04-24 14:03:08 +0200
1858
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
1859
+
1860
+
1861
+ Started POST "/orders" for 127.0.0.1 at 2013-04-24 14:03:13 +0200
1862
+ Processing by OrdersController#create as HTML
1863
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"sYtpdAkBiSPH0VVmuJaonVtw4WeS/h2Atq0ssPS25Qg=", "order"=>{"name"=>"order 1", "amount"=>"10"}, "commit"=>"Create Order"}
1864
+  (0.1ms) begin transaction
1865
+ SQL (33.9ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", "10"], ["created_at", Wed, 24 Apr 2013 12:03:13 UTC +00:00], ["name", "order 1"], ["updated_at", Wed, 24 Apr 2013 12:03:13 UTC +00:00]]
1866
+  (4.4ms) commit transaction
1867
+ Redirected to http://0.0.0.0:3000/orders/1
1868
+ Completed 302 Found in 43ms (ActiveRecord: 38.4ms)
1869
+
1870
+
1871
+ Started GET "/orders/1" for 127.0.0.1 at 2013-04-24 14:03:13 +0200
1872
+ Processing by OrdersController#show as HTML
1873
+ Parameters: {"id"=>"1"}
1874
+ Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]]
1875
+  (0.1ms) begin transaction
1876
+ Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = 1 LIMIT 1
1877
+ Binary data inserted for `string` type on column `session_id`
1878
+ SQL (7.3ms) INSERT INTO "opay_payments" ("amount", "created_at", "finished", "payable_id", "payable_type", "provider", "session_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["amount", 10.0], ["created_at", Wed, 24 Apr 2013 12:03:13 UTC +00:00], ["finished", false], ["payable_id", 1], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "a7deb9a6840e764b4dac3ce9469a788c"], ["updated_at", Wed, 24 Apr 2013 12:03:13 UTC +00:00]]
1879
+  (4.2ms) commit transaction
1880
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = 1 AND "opay_payments"."payable_type" = 'Order' LIMIT 1
1881
+ Rendered orders/show.html.erb within layouts/application (103.8ms)
1882
+ Completed 200 OK in 125ms (Views: 111.9ms | ActiveRecord: 12.4ms)
1883
+
1884
+
1885
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2013-04-24 14:03:13 +0200
1886
+ Served asset /scaffold.css - 304 Not Modified (0ms)
1887
+
1888
+
1889
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-04-24 14:03:13 +0200
1890
+ Served asset /jquery.js - 304 Not Modified (0ms)
1891
+
1892
+
1893
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-04-24 14:03:13 +0200
1894
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
1895
+
1896
+
1897
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-04-24 14:03:13 +0200
1898
+ Served asset /application.js - 304 Not Modified (0ms)
1899
+
1900
+
1901
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-04-24 14:03:13 +0200
1902
+ Served asset /application.css - 304 Not Modified (8ms)
1903
+
1904
+
1905
+ Started GET "/orders/1" for 127.0.0.1 at 2013-04-24 14:04:07 +0200
1906
+ Processing by OrdersController#show as HTML
1907
+ Parameters: {"id"=>"1"}
1908
+ Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]]
1909
+  (0.1ms) begin transaction
1910
+ Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = 1 LIMIT 1
1911
+ Binary data inserted for `string` type on column `session_id`
1912
+ SQL (0.5ms) INSERT INTO "opay_payments" ("amount", "created_at", "finished", "payable_id", "payable_type", "provider", "session_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["amount", 10.0], ["created_at", Wed, 24 Apr 2013 12:04:07 UTC +00:00], ["finished", false], ["payable_id", 1], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "a7deb9a6840e764b4dac3ce9469a788c"], ["updated_at", Wed, 24 Apr 2013 12:04:07 UTC +00:00]]
1913
+  (2.7ms) commit transaction
1914
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = 1 AND "opay_payments"."payable_type" = 'Order' LIMIT 1
1915
+  (0.0ms) begin transaction
1916
+  (0.0ms) rollback transaction
1917
+ Rendered orders/show.html.erb within layouts/application (39.9ms)
1918
+ Completed 500 Internal Server Error in 43ms
1919
+
1920
+ ActiveRecord::RecordNotSaved (Failed to remove the existing associated payment. The record failed to save when after its foreign key was set to nil.):
1921
+ app/views/orders/show.html.erb:13:in `_app_views_orders_show_html_erb___3780241057777541332_70269272291260'
1922
+ app/controllers/orders_controller.rb:18:in `show'
1923
+
1924
+
1925
+ Rendered /Users/mariusz/.rvm/gems/ruby-1.9.3-p0@payments_engine/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_trace.erb (2.8ms)
1926
+ Rendered /Users/mariusz/.rvm/gems/ruby-1.9.3-p0@payments_engine/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.1ms)
1927
+ Rendered /Users/mariusz/.rvm/gems/ruby-1.9.3-p0@payments_engine/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (49.2ms)
1928
+
1929
+
1930
+ Started GET "/orders/1" for 127.0.0.1 at 2013-04-24 14:04:19 +0200
1931
+ Processing by OrdersController#show as HTML
1932
+ Parameters: {"id"=>"1"}
1933
+ Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]]
1934
+  (0.1ms) begin transaction
1935
+ Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = 1 LIMIT 1
1936
+ Binary data inserted for `string` type on column `session_id`
1937
+ SQL (0.5ms) INSERT INTO "opay_payments" ("amount", "created_at", "finished", "payable_id", "payable_type", "provider", "session_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["amount", 10.0], ["created_at", Wed, 24 Apr 2013 12:04:19 UTC +00:00], ["finished", false], ["payable_id", 1], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "a7deb9a6840e764b4dac3ce9469a788c"], ["updated_at", Wed, 24 Apr 2013 12:04:19 UTC +00:00]]
1938
+  (7.6ms) commit transaction
1939
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = 1 AND "opay_payments"."payable_type" = 'Order' LIMIT 1
1940
+  (0.0ms) begin transaction
1941
+  (0.1ms) rollback transaction
1942
+ Rendered orders/show.html.erb within layouts/application (23.9ms)
1943
+ Completed 500 Internal Server Error in 26ms
1944
+
1945
+ ActiveRecord::RecordNotSaved (Failed to remove the existing associated payment. The record failed to save when after its foreign key was set to nil.):
1946
+ app/views/orders/show.html.erb:13:in `_app_views_orders_show_html_erb___3780241057777541332_70269272291260'
1947
+ app/controllers/orders_controller.rb:18:in `show'
1948
+
1949
+
1950
+ Rendered /Users/mariusz/.rvm/gems/ruby-1.9.3-p0@payments_engine/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.5ms)
1951
+ Rendered /Users/mariusz/.rvm/gems/ruby-1.9.3-p0@payments_engine/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.0ms)
1952
+ Rendered /Users/mariusz/.rvm/gems/ruby-1.9.3-p0@payments_engine/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (8.7ms)
1953
+
1954
+
1955
+ Started GET "/orders/1" for 127.0.0.1 at 2013-04-24 14:04:57 +0200
1956
+ Processing by OrdersController#show as HTML
1957
+ Parameters: {"id"=>"1"}
1958
+ Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]]
1959
+  (0.1ms) begin transaction
1960
+ Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = 1 LIMIT 1
1961
+ Binary data inserted for `string` type on column `session_id`
1962
+ SQL (0.7ms) INSERT INTO "opay_payments" ("amount", "created_at", "finished", "payable_id", "payable_type", "provider", "session_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["amount", 10.0], ["created_at", Wed, 24 Apr 2013 12:04:57 UTC +00:00], ["finished", false], ["payable_id", 1], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "a7deb9a6840e764b4dac3ce9469a788c"], ["updated_at", Wed, 24 Apr 2013 12:04:57 UTC +00:00]]
1963
+  (1.8ms) commit transaction
1964
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = 1 AND "opay_payments"."payable_type" = 'Order' LIMIT 1
1965
+  (0.0ms) begin transaction
1966
+  (0.0ms) rollback transaction
1967
+ Rendered orders/show.html.erb within layouts/application (10.1ms)
1968
+ Completed 500 Internal Server Error in 13ms
1969
+
1970
+ ActiveRecord::RecordNotSaved (Failed to remove the existing associated payment. The record failed to save when after its foreign key was set to nil.):
1971
+ app/views/orders/show.html.erb:13:in `_app_views_orders_show_html_erb___3780241057777541332_70269272291260'
1972
+ app/controllers/orders_controller.rb:18:in `show'
1973
+
1974
+
1975
+ Rendered /Users/mariusz/.rvm/gems/ruby-1.9.3-p0@payments_engine/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.3ms)
1976
+ Rendered /Users/mariusz/.rvm/gems/ruby-1.9.3-p0@payments_engine/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.9ms)
1977
+ Rendered /Users/mariusz/.rvm/gems/ruby-1.9.3-p0@payments_engine/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (7.3ms)
1978
+ Connecting to database specified by database.yml
1979
+
1980
+
1981
+ Started GET "/orders/1" for 127.0.0.1 at 2013-04-24 14:06:24 +0200
1982
+ Processing by OrdersController#show as HTML
1983
+ Parameters: {"id"=>"1"}
1984
+ Order Load (0.3ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]]
1985
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = 1 AND "opay_payments"."payable_type" = 'Order' LIMIT 1
1986
+ Rendered orders/show.html.erb within layouts/application (167.1ms)
1987
+ Completed 200 OK in 430ms (Views: 308.7ms | ActiveRecord: 28.0ms)
1988
+
1989
+
1990
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-04-24 14:06:25 +0200
1991
+ Served asset /application.css - 304 Not Modified (6ms)
1992
+
1993
+
1994
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-04-24 14:06:25 +0200
1995
+ Served asset /jquery_ujs.js - 304 Not Modified (1ms)
1996
+
1997
+
1998
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-04-24 14:06:25 +0200
1999
+ Served asset /jquery.js - 304 Not Modified (2ms)
2000
+
2001
+
2002
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-04-24 14:06:25 +0200
2003
+ Served asset /application.js - 304 Not Modified (3ms)
2004
+
2005
+
2006
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2013-04-24 14:06:25 +0200
2007
+ Served asset /scaffold.css - 304 Not Modified (1ms)
2008
+
2009
+
2010
+ Started GET "/orders/1" for 127.0.0.1 at 2013-04-24 14:06:28 +0200
2011
+ Processing by OrdersController#show as HTML
2012
+ Parameters: {"id"=>"1"}
2013
+ Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]]
2014
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = 1 AND "opay_payments"."payable_type" = 'Order' LIMIT 1
2015
+ Rendered orders/show.html.erb within layouts/application (4.1ms)
2016
+ Completed 200 OK in 10ms (Views: 8.2ms | ActiveRecord: 0.4ms)
2017
+
2018
+
2019
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-04-24 14:06:28 +0200
2020
+ Served asset /application.css - 304 Not Modified (0ms)
2021
+
2022
+
2023
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-04-24 14:06:28 +0200
2024
+ Served asset /jquery.js - 304 Not Modified (0ms)
2025
+
2026
+
2027
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-04-24 14:06:28 +0200
2028
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
2029
+
2030
+
2031
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-04-24 14:06:28 +0200
2032
+ Served asset /application.js - 304 Not Modified (0ms)
2033
+
2034
+
2035
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2013-04-24 14:06:28 +0200
2036
+ Served asset /scaffold.css - 304 Not Modified (0ms)
2037
+
2038
+
2039
+ Started GET "/orders/1" for 127.0.0.1 at 2013-04-24 14:07:00 +0200
2040
+ Processing by OrdersController#show as HTML
2041
+ Parameters: {"id"=>"1"}
2042
+ Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]]
2043
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = 1 AND "opay_payments"."payable_type" = 'Order' LIMIT 1
2044
+ Rendered orders/show.html.erb within layouts/application (4.8ms)
2045
+ Completed 200 OK in 10ms (Views: 8.5ms | ActiveRecord: 0.3ms)
2046
+
2047
+
2048
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-04-24 14:07:00 +0200
2049
+ Served asset /application.css - 304 Not Modified (0ms)
2050
+
2051
+
2052
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2013-04-24 14:07:00 +0200
2053
+ Served asset /scaffold.css - 304 Not Modified (0ms)
2054
+
2055
+
2056
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-04-24 14:07:00 +0200
2057
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
2058
+
2059
+
2060
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-04-24 14:07:00 +0200
2061
+ Served asset /jquery.js - 304 Not Modified (0ms)
2062
+
2063
+
2064
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-04-24 14:07:00 +0200
2065
+ Served asset /application.js - 304 Not Modified (0ms)
2066
+
2067
+
2068
+ Started GET "/orders/1" for 127.0.0.1 at 2013-04-24 14:07:15 +0200
2069
+ Processing by OrdersController#show as HTML
2070
+ Parameters: {"id"=>"1"}
2071
+ Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]]
2072
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = 1 AND "opay_payments"."payable_type" = 'Order' LIMIT 1
2073
+ Rendered orders/show.html.erb within layouts/application (318.8ms)
2074
+ Completed 200 OK in 577ms (Views: 576.0ms | ActiveRecord: 0.3ms)
2075
+
2076
+
2077
+ Started GET "/orders/1" for 127.0.0.1 at 2013-04-24 14:07:16 +0200
2078
+ Processing by OrdersController#show as HTML
2079
+ Parameters: {"id"=>"1"}
2080
+ Order Load (0.3ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]]
2081
+ Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = 1 AND "opay_payments"."payable_type" = 'Order' LIMIT 1
2082
+ Rendered orders/show.html.erb within layouts/application (6.5ms)
2083
+ Completed 200 OK in 27ms (Views: 23.3ms | ActiveRecord: 0.6ms)
2084
+
2085
+
2086
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-04-24 14:07:17 +0200
2087
+ Served asset /application.css - 304 Not Modified (0ms)
2088
+
2089
+
2090
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-04-24 14:07:17 +0200
2091
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
2092
+
2093
+
2094
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-04-24 14:07:17 +0200
2095
+ Served asset /jquery.js - 304 Not Modified (0ms)
2096
+
2097
+
2098
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2013-04-24 14:07:17 +0200
2099
+ Served asset /scaffold.css - 304 Not Modified (0ms)
2100
+
2101
+
2102
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-04-24 14:07:17 +0200
2103
+ Served asset /application.js - 304 Not Modified (0ms)
2104
+
2105
+
2106
+ Started GET "/orders/1" for 127.0.0.1 at 2013-04-24 14:07:35 +0200
2107
+ Processing by OrdersController#show as HTML
2108
+ Parameters: {"id"=>"1"}
2109
+ Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]]
2110
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = 1 AND "opay_payments"."payable_type" = 'Order' LIMIT 1
2111
+ Rendered orders/show.html.erb within layouts/application (4.9ms)
2112
+ Completed 200 OK in 11ms (Views: 9.7ms | ActiveRecord: 0.3ms)
2113
+
2114
+
2115
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-04-24 14:07:35 +0200
2116
+ Served asset /application.css - 304 Not Modified (0ms)
2117
+
2118
+
2119
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2013-04-24 14:07:35 +0200
2120
+ Served asset /scaffold.css - 304 Not Modified (0ms)
2121
+
2122
+
2123
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-04-24 14:07:35 +0200
2124
+ Served asset /application.js - 304 Not Modified (0ms)
2125
+
2126
+
2127
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-04-24 14:07:35 +0200
2128
+ Served asset /jquery.js - 304 Not Modified (0ms)
2129
+
2130
+
2131
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-04-24 14:07:35 +0200
2132
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
2133
+
2134
+
2135
+ Started GET "/orders/1" for 127.0.0.1 at 2013-04-24 14:07:42 +0200
2136
+ Processing by OrdersController#show as HTML
2137
+ Parameters: {"id"=>"1"}
2138
+ Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]]
2139
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = 1 AND "opay_payments"."payable_type" = 'Order' LIMIT 1
2140
+ Rendered orders/show.html.erb within layouts/application (2.5ms)
2141
+ Completed 200 OK in 8ms (Views: 6.9ms | ActiveRecord: 0.3ms)
2142
+
2143
+
2144
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-04-24 14:07:42 +0200
2145
+ Served asset /application.css - 304 Not Modified (0ms)
2146
+
2147
+
2148
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-04-24 14:07:42 +0200
2149
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
2150
+
2151
+
2152
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-04-24 14:07:42 +0200
2153
+ Served asset /application.js - 304 Not Modified (0ms)
2154
+
2155
+
2156
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-04-24 14:07:42 +0200
2157
+ Served asset /jquery.js - 304 Not Modified (0ms)
2158
+
2159
+
2160
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2013-04-24 14:07:42 +0200
2161
+ Served asset /scaffold.css - 304 Not Modified (0ms)
2162
+
2163
+
2164
+ Started GET "/orders/1" for 127.0.0.1 at 2013-04-24 14:08:49 +0200
2165
+ Processing by OrdersController#show as HTML
2166
+ Parameters: {"id"=>"1"}
2167
+ Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]]
2168
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = 1 AND "opay_payments"."payable_type" = 'Order' LIMIT 1
2169
+ Rendered orders/show.html.erb within layouts/application (2.7ms)
2170
+ Completed 200 OK in 37ms (Views: 36.1ms | ActiveRecord: 0.3ms)
2171
+
2172
+
2173
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-04-24 14:08:49 +0200
2174
+ Served asset /application.css - 304 Not Modified (0ms)
2175
+
2176
+
2177
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-04-24 14:08:49 +0200
2178
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
2179
+
2180
+
2181
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-04-24 14:08:49 +0200
2182
+ Served asset /application.js - 304 Not Modified (0ms)
2183
+
2184
+
2185
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2013-04-24 14:08:49 +0200
2186
+ Served asset /scaffold.css - 304 Not Modified (0ms)
2187
+
2188
+
2189
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-04-24 14:08:49 +0200
2190
+ Served asset /jquery.js - 304 Not Modified (0ms)
2191
+
2192
+
2193
+ Started GET "/orders/1" for 127.0.0.1 at 2013-04-24 14:09:49 +0200
2194
+ Processing by OrdersController#show as HTML
2195
+ Parameters: {"id"=>"1"}
2196
+ Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]]
2197
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = 1 AND "opay_payments"."payable_type" = 'Order' LIMIT 1
2198
+ Rendered orders/show.html.erb within layouts/application (4.5ms)
2199
+ Completed 200 OK in 27ms (Views: 26.2ms | ActiveRecord: 0.4ms)
2200
+
2201
+
2202
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-04-24 14:09:49 +0200
2203
+ Served asset /application.css - 304 Not Modified (0ms)
2204
+
2205
+
2206
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2013-04-24 14:09:49 +0200
2207
+ Served asset /scaffold.css - 304 Not Modified (0ms)
2208
+
2209
+
2210
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-04-24 14:09:49 +0200
2211
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
2212
+
2213
+
2214
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-04-24 14:09:49 +0200
2215
+ Served asset /application.js - 304 Not Modified (0ms)
2216
+
2217
+
2218
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-04-24 14:09:49 +0200
2219
+ Served asset /jquery.js - 304 Not Modified (0ms)
2220
+
2221
+
2222
+ Started GET "/orders/1" for 127.0.0.1 at 2013-04-24 14:09:52 +0200
2223
+ Processing by OrdersController#show as HTML
2224
+ Parameters: {"id"=>"1"}
2225
+ Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]]
2226
+ Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = 1 AND "opay_payments"."payable_type" = 'Order' LIMIT 1
2227
+ Rendered orders/show.html.erb within layouts/application (2.4ms)
2228
+ Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.3ms)
2229
+
2230
+
2231
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-04-24 14:09:52 +0200
2232
+ Served asset /application.css - 304 Not Modified (0ms)
2233
+
2234
+
2235
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2013-04-24 14:09:52 +0200
2236
+ Served asset /scaffold.css - 304 Not Modified (0ms)
2237
+
2238
+
2239
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-04-24 14:09:52 +0200
2240
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
2241
+
2242
+
2243
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-04-24 14:09:52 +0200
2244
+ Served asset /jquery.js - 304 Not Modified (0ms)
2245
+
2246
+
2247
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-04-24 14:09:52 +0200
2248
+ Served asset /application.js - 304 Not Modified (0ms)
2249
+ Connecting to database specified by database.yml
2250
+
2251
+
2252
+ Started GET "/orders/1" for 127.0.0.1 at 2013-04-24 14:11:45 +0200
2253
+ Processing by OrdersController#show as HTML
2254
+ Parameters: {"id"=>"1"}
2255
+ Order Load (23.3ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]]
2256
+ Opay::Payment Load (0.6ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = 1 AND "opay_payments"."payable_type" = 'Order' LIMIT 1
2257
+ Rendered orders/show.html.erb within layouts/application (165.2ms)
2258
+ Completed 200 OK in 447ms (Views: 306.4ms | ActiveRecord: 50.9ms)
2259
+
2260
+
2261
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-04-24 14:11:46 +0200
2262
+ Served asset /application.css - 304 Not Modified (41ms)
2263
+
2264
+
2265
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-04-24 14:11:46 +0200
2266
+ Served asset /jquery.js - 304 Not Modified (5ms)
2267
+
2268
+
2269
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-04-24 14:11:46 +0200
2270
+ Served asset /jquery_ujs.js - 304 Not Modified (1ms)
2271
+
2272
+
2273
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-04-24 14:11:46 +0200
2274
+ Served asset /application.js - 304 Not Modified (5ms)
2275
+
2276
+
2277
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2013-04-24 14:11:46 +0200
2278
+ Served asset /scaffold.css - 304 Not Modified (1ms)
2279
+
2280
+
2281
+ Started GET "/orders/1" for 127.0.0.1 at 2013-04-24 14:12:43 +0200
2282
+ Processing by OrdersController#show as HTML
2283
+ Parameters: {"id"=>"1"}
2284
+ Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]]
2285
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = 1 AND "opay_payments"."payable_type" = 'Order' LIMIT 1
2286
+ Rendered orders/show.html.erb within layouts/application (3.1ms)
2287
+ Completed 200 OK in 34ms (Views: 32.8ms | ActiveRecord: 0.3ms)
2288
+
2289
+
2290
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-04-24 14:12:43 +0200
2291
+ Served asset /application.css - 304 Not Modified (0ms)
2292
+
2293
+
2294
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2013-04-24 14:12:43 +0200
2295
+ Served asset /scaffold.css - 304 Not Modified (0ms)
2296
+
2297
+
2298
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-04-24 14:12:43 +0200
2299
+ Served asset /jquery.js - 304 Not Modified (0ms)
2300
+
2301
+
2302
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-04-24 14:12:43 +0200
2303
+ Served asset /application.js - 304 Not Modified (0ms)
2304
+
2305
+
2306
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-04-24 14:12:43 +0200
2307
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
2308
+
2309
+
2310
+ Started GET "/orders/1" for 127.0.0.1 at 2013-04-24 14:13:36 +0200
2311
+ Processing by OrdersController#show as HTML
2312
+ Parameters: {"id"=>"1"}
2313
+ Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]]
2314
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = 1 AND "opay_payments"."payable_type" = 'Order' LIMIT 1
2315
+ Rendered orders/show.html.erb within layouts/application (74.3ms)
2316
+ Completed 500 Internal Server Error in 89ms
2317
+
2318
+ ActionView::Template::Error (undefined local variable or method `request' for #<Opay::FormBuilder:0x007fe1036f3ec0>):
2319
+ 16: </p>
2320
+ 17:
2321
+ 18: <%= opay_form_for(@order) do |f| %>
2322
+ 19: <%= f.payment_info first_name: 'Jan', last_name: 'Kowalski', email: 'kowalski@gmail.com', desc: 'Test payment' %>
2323
+ 20: <%= f.submit 'pay with payu' %>
2324
+ 21: <% end %>
2325
+ 22:
2326
+ app/views/orders/show.html.erb:19:in `block in _app_views_orders_show_html_erb__1732424407509850341_70302188118440'
2327
+ app/views/orders/show.html.erb:18:in `_app_views_orders_show_html_erb__1732424407509850341_70302188118440'
2328
+ app/controllers/orders_controller.rb:18:in `show'
2329
+
2330
+
2331
+ Rendered /Users/mariusz/.rvm/gems/ruby-1.9.3-p0@payments_engine/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.4ms)
2332
+ Rendered /Users/mariusz/.rvm/gems/ruby-1.9.3-p0@payments_engine/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.9ms)
2333
+ Rendered /Users/mariusz/.rvm/gems/ruby-1.9.3-p0@payments_engine/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (10.1ms)
2334
+
2335
+
2336
+ Started GET "/orders/1" for 127.0.0.1 at 2013-04-24 14:15:16 +0200
2337
+ Processing by OrdersController#show as HTML
2338
+ Parameters: {"id"=>"1"}
2339
+ Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]]
2340
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = 1 AND "opay_payments"."payable_type" = 'Order' LIMIT 1
2341
+ Rendered orders/show.html.erb within layouts/application (5.4ms)
2342
+ Completed 500 Internal Server Error in 29ms
2343
+
2344
+ ActionView::Template::Error (undefined method `client_ip' for #<ActionDispatch::Request:0x007fe101efcdf8>):
2345
+ 16: </p>
2346
+ 17:
2347
+ 18: <%= opay_form_for(@order) do |f| %>
2348
+ 19: <%= f.payment_info first_name: 'Jan', last_name: 'Kowalski', email: 'kowalski@gmail.com', desc: 'Test payment', client_ip: request.client_ip %>
2349
+ 20: <%= f.submit 'pay with payu' %>
2350
+ 21: <% end %>
2351
+ 22:
2352
+ app/views/orders/show.html.erb:19:in `block in _app_views_orders_show_html_erb__1732424407509850341_70302199623420'
2353
+ app/views/orders/show.html.erb:18:in `_app_views_orders_show_html_erb__1732424407509850341_70302199623420'
2354
+ app/controllers/orders_controller.rb:18:in `show'
2355
+
2356
+
2357
+ Rendered /Users/mariusz/.rvm/gems/ruby-1.9.3-p0@payments_engine/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.2ms)
2358
+ Rendered /Users/mariusz/.rvm/gems/ruby-1.9.3-p0@payments_engine/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.5ms)
2359
+ Rendered /Users/mariusz/.rvm/gems/ruby-1.9.3-p0@payments_engine/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (8.8ms)
2360
+
2361
+
2362
+ Started GET "/orders/1" for 127.0.0.1 at 2013-04-24 14:15:42 +0200
2363
+ Processing by OrdersController#show as HTML
2364
+ Parameters: {"id"=>"1"}
2365
+ Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]]
2366
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = 1 AND "opay_payments"."payable_type" = 'Order' LIMIT 1
2367
+ Rendered orders/show.html.erb within layouts/application (4.6ms)
2368
+ Completed 200 OK in 9ms (Views: 7.9ms | ActiveRecord: 0.4ms)
2369
+
2370
+
2371
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-04-24 14:15:42 +0200
2372
+ Served asset /application.css - 304 Not Modified (0ms)
2373
+
2374
+
2375
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-04-24 14:15:42 +0200
2376
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
2377
+
2378
+
2379
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-04-24 14:15:42 +0200
2380
+ Served asset /application.js - 304 Not Modified (0ms)
2381
+
2382
+
2383
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-04-24 14:15:42 +0200
2384
+ Served asset /jquery.js - 304 Not Modified (0ms)
2385
+
2386
+
2387
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2013-04-24 14:15:42 +0200
2388
+ Served asset /scaffold.css - 304 Not Modified (0ms)
2389
+ Connecting to database specified by database.yml
2390
+
2391
+
2392
+ Started GET "/orders/1" for 127.0.0.1 at 2013-04-24 14:19:18 +0200
2393
+ Processing by OrdersController#show as HTML
2394
+ Parameters: {"id"=>"1"}
2395
+ Order Load (21.8ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]]
2396
+ Opay::Payment Load (0.7ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = 1 AND "opay_payments"."payable_type" = 'Order' LIMIT 1
2397
+ Rendered orders/show.html.erb within layouts/application (214.7ms)
2398
+ Completed 500 Internal Server Error in 440ms
2399
+
2400
+ ActionView::Template::Error (undefined local variable or method `view' for #<Opay::FormBuilder:0x007fdab4328570>):
2401
+ 16: </p>
2402
+ 17:
2403
+ 18: <%= opay_form_for(@order) do |f| %>
2404
+ 19: <%= f.payment_info first_name: 'Jan', last_name: 'Kowalski', email: 'kowalski@gmail.com', desc: 'Test payment' %>
2405
+ 20: <%= f.submit 'pay with payu' %>
2406
+ 21: <% end %>
2407
+ 22:
2408
+ app/views/orders/show.html.erb:19:in `block in _app_views_orders_show_html_erb__3919135364871191408_70288639727100'
2409
+ app/views/orders/show.html.erb:18:in `_app_views_orders_show_html_erb__3919135364871191408_70288639727100'
2410
+ app/controllers/orders_controller.rb:18:in `show'
2411
+
2412
+
2413
+ Rendered /Users/mariusz/.rvm/gems/ruby-1.9.3-p0@payments_engine/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.3ms)
2414
+ Rendered /Users/mariusz/.rvm/gems/ruby-1.9.3-p0@payments_engine/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.1ms)
2415
+ Rendered /Users/mariusz/.rvm/gems/ruby-1.9.3-p0@payments_engine/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (10.9ms)
2416
+ Connecting to database specified by database.yml
2417
+
2418
+
2419
+ Started GET "/orders/1" for 127.0.0.1 at 2013-04-24 14:23:07 +0200
2420
+ Processing by OrdersController#show as HTML
2421
+ Parameters: {"id"=>"1"}
2422
+ Order Load (23.3ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]]
2423
+ Opay::Payment Load (0.6ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = 1 AND "opay_payments"."payable_type" = 'Order' LIMIT 1
2424
+ Rendered orders/show.html.erb within layouts/application (278.7ms)
2425
+ Completed 500 Internal Server Error in 541ms
2426
+
2427
+ ActionView::Template::Error (undefined local variable or method `request' for #<Opay::FormBuilder:0x007fa173547470>):
2428
+ 16: </p>
2429
+ 17:
2430
+ 18: <%= opay_form_for(@order) do |f| %>
2431
+ 19: <%= f.payment_info first_name: 'Jan', last_name: 'Kowalski', email: 'kowalski@gmail.com', desc: 'Test payment' %>
2432
+ 20: <%= f.submit 'pay with payu' %>
2433
+ 21: <% end %>
2434
+ 22:
2435
+ app/views/orders/show.html.erb:19:in `block in _app_views_orders_show_html_erb___1594893664330200545_70165726232560'
2436
+ app/views/orders/show.html.erb:18:in `_app_views_orders_show_html_erb___1594893664330200545_70165726232560'
2437
+ app/controllers/orders_controller.rb:18:in `show'
2438
+
2439
+
2440
+ Rendered /Users/mariusz/.rvm/gems/ruby-1.9.3-p0@payments_engine/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.3ms)
2441
+ Rendered /Users/mariusz/.rvm/gems/ruby-1.9.3-p0@payments_engine/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.9ms)
2442
+ Rendered /Users/mariusz/.rvm/gems/ruby-1.9.3-p0@payments_engine/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (9.8ms)
2443
+ Connecting to database specified by database.yml
2444
+
2445
+
2446
+ Started GET "/orders/1" for 127.0.0.1 at 2013-04-24 14:28:09 +0200
2447
+ Processing by OrdersController#show as HTML
2448
+ Parameters: {"id"=>"1"}
2449
+ Order Load (23.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]]
2450
+ Opay::Payment Load (0.6ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = 1 AND "opay_payments"."payable_type" = 'Order' LIMIT 1
2451
+ Rendered orders/show.html.erb within layouts/application (181.0ms)
2452
+ Completed 200 OK in 447ms (Views: 305.6ms | ActiveRecord: 51.0ms)
2453
+
2454
+
2455
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-04-24 14:28:10 +0200
2456
+ Served asset /application.css - 304 Not Modified (5ms)
2457
+
2458
+
2459
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-04-24 14:28:10 +0200
2460
+ Served asset /application.js - 304 Not Modified (5ms)
2461
+
2462
+
2463
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-04-24 14:28:10 +0200
2464
+ Served asset /jquery.js - 304 Not Modified (2ms)
2465
+
2466
+
2467
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-04-24 14:28:10 +0200
2468
+ Served asset /jquery_ujs.js - 304 Not Modified (1ms)
2469
+
2470
+
2471
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2013-04-24 14:28:10 +0200
2472
+ Served asset /scaffold.css - 304 Not Modified (1ms)