seiten 0.0.2 → 0.0.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7ff3eff988f3787487b60b8f11c630b6e24bfa1a
4
- data.tar.gz: 3b643778c38bc5d7159d2e460621ed0b23fc397b
3
+ metadata.gz: d2c65c4c99a68b5c68a66c4e0ec9ca783378f809
4
+ data.tar.gz: 25bd50d9ee3ae8d2999ef308c3422850de4d890b
5
5
  SHA512:
6
- metadata.gz: 4bb7ac830e0296c69fdeb75c8794c05bfb3e412875ae99d4cb87246a42c0401ad7034c79e49f27d492dcbcce05d87a89b87e269633722d1d1d1cccbeac05aa50
7
- data.tar.gz: 38db0d1c66f10f3d4ff8412440d4222d41277e956c3df186fe47754cefe3d24408f779002d00faa5ab3ecbd77054f7a18b30b2234f2cf7843f186eb855feb7f8
6
+ metadata.gz: 031000e07430ab7452480c2cb7c930eac0b5cfb9b6098e72fb9993f7225450c1ed127d25dfe0bffd40a638fc2ef0c0e5e7ac991e3c2383687ed16ab6dd3e1532
7
+ data.tar.gz: f15c195a766391ce5469bfd9d7b9b9cadc5ceba5db2d5858c1b5430e66716983a294e2feafe73542b75d9f9ac1de2e2789927bd8b6481e952d742528c7ba3e31
@@ -28,13 +28,15 @@ module SeitenHelper
28
28
  end
29
29
 
30
30
  def seiten_breadcrumb
31
- output = content_tag(:ul, class: "breadcrumb") do
32
- Seiten::Page.get_breadcrumb(current_page).reverse.collect { |page|
33
- content_tag :li do
34
- raw "> #{link_to(page.title, page.slug)}"
35
- end
36
- }.join().html_safe
31
+ if current_page
32
+ output = content_tag(:ul, class: "breadcrumb") do
33
+ Seiten::Page.get_breadcrumb(current_page).reverse.collect { |page|
34
+ content_tag :li do
35
+ raw "> #{link_to(page.title, page.slug)}"
36
+ end
37
+ }.join().html_safe
38
+ end
39
+ output
37
40
  end
38
- output
39
41
  end
40
42
  end
data/lib/seiten/page.rb CHANGED
@@ -67,12 +67,14 @@ module Seiten
67
67
 
68
68
  # true if page is equal current_page or parent of current_page
69
69
  def active?(current_page)
70
- if id == current_page.id
71
- true
72
- elsif parent_of?(current_page)
73
- true
74
- else
75
- false
70
+ if current_page
71
+ if id == current_page.id
72
+ true
73
+ elsif parent_of?(current_page)
74
+ true
75
+ else
76
+ false
77
+ end
76
78
  end
77
79
  end
78
80
  end
@@ -1,3 +1,3 @@
1
1
  module Seiten
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -0,0 +1,5 @@
1
+ class PagesController < ApplicationController
2
+
3
+ def secret
4
+ end
5
+ end
@@ -0,0 +1 @@
1
+ This is a secret page
@@ -1,3 +1,5 @@
1
1
  Dummy::Application.routes.draw do
2
2
  root :to => "seiten/pages#show"
3
+
4
+ get "/secret", to: "pages#secret"
3
5
  end
@@ -1758,3 +1758,628 @@ Completed 200 OK in 110ms (Views: 108.3ms | ActiveRecord: 0.0ms)
1758
1758
   (0.0ms) rollback transaction
1759
1759
   (0.1ms) begin transaction
1760
1760
   (0.0ms) rollback transaction
1761
+ Connecting to database specified by database.yml
1762
+  (0.2ms) begin transaction
1763
+ Started GET "/" for 127.0.0.1 at 2013-07-24 12:51:31 +0200
1764
+ Processing by Seiten::PagesController#show as HTML
1765
+ Rendered app/pages/home.html.erb (0.2ms)
1766
+ Rendered /Users/pulleasy/code/seiten/app/views/seiten/pages/show.html.erb within layouts/application (1.8ms)
1767
+ Completed 200 OK in 58ms (Views: 55.8ms | ActiveRecord: 0.0ms)
1768
+  (0.1ms) rollback transaction
1769
+  (0.0ms) begin transaction
1770
+ Started GET "/about" for 127.0.0.1 at 2013-07-24 12:51:31 +0200
1771
+ Started GET "/about/our-team" for 127.0.0.1 at 2013-07-24 12:51:31 +0200
1772
+ Processing by Seiten::PagesController#show as HTML
1773
+ Parameters: {"page"=>"about/our-team"}
1774
+ Completed 200 OK in 103ms (Views: 102.1ms | ActiveRecord: 0.0ms)
1775
+  (0.1ms) rollback transaction
1776
+  (0.0ms) begin transaction
1777
+ Started GET "/" for 127.0.0.1 at 2013-07-24 12:51:31 +0200
1778
+ Processing by Seiten::PagesController#show as HTML
1779
+ Completed 200 OK in 50ms (Views: 48.6ms | ActiveRecord: 0.0ms)
1780
+ Started GET "/contact" for 127.0.0.1 at 2013-07-24 12:51:31 +0200
1781
+ Processing by Seiten::PagesController#show as HTML
1782
+ Parameters: {"page"=>"contact"}
1783
+ Completed 200 OK in 69ms (Views: 67.4ms | ActiveRecord: 0.0ms)
1784
+  (0.1ms) rollback transaction
1785
+  (0.0ms) begin transaction
1786
+ Started GET "/" for 127.0.0.1 at 2013-07-24 12:51:31 +0200
1787
+ Processing by Seiten::PagesController#show as HTML
1788
+ Completed 200 OK in 50ms (Views: 49.0ms | ActiveRecord: 0.0ms)
1789
+  (0.0ms) rollback transaction
1790
+  (0.0ms) begin transaction
1791
+ Started GET "/about/our-team/switzerland" for 127.0.0.1 at 2013-07-24 12:51:31 +0200
1792
+ Processing by Seiten::PagesController#show as HTML
1793
+ Parameters: {"page"=>"about/our-team/switzerland"}
1794
+ Completed 200 OK in 112ms (Views: 110.9ms | ActiveRecord: 0.0ms)
1795
+  (0.1ms) rollback transaction
1796
+  (0.0ms) begin transaction
1797
+ Started GET "/about/our-team/switzerland" for 127.0.0.1 at 2013-07-24 12:51:31 +0200
1798
+ Processing by Seiten::PagesController#show as HTML
1799
+ Parameters: {"page"=>"about/our-team/switzerland"}
1800
+ Completed 200 OK in 112ms (Views: 110.7ms | ActiveRecord: 0.0ms)
1801
+ Started GET "/about/our-team" for 127.0.0.1 at 2013-07-24 12:51:32 +0200
1802
+ Processing by Seiten::PagesController#show as HTML
1803
+ Parameters: {"page"=>"about/our-team"}
1804
+ Completed 200 OK in 101ms (Views: 100.0ms | ActiveRecord: 0.0ms)
1805
+  (0.0ms) rollback transaction
1806
+  (0.0ms) begin transaction
1807
+ Started GET "/" for 127.0.0.1 at 2013-07-24 12:51:32 +0200
1808
+ Processing by Seiten::PagesController#show as HTML
1809
+ Completed 200 OK in 26ms (Views: 25.1ms | ActiveRecord: 0.0ms)
1810
+ Started GET "/products/web-development" for 127.0.0.1 at 2013-07-24 12:51:32 +0200
1811
+ Processing by Seiten::PagesController#show as HTML
1812
+ Parameters: {"page"=>"products/web-development"}
1813
+ Completed 200 OK in 94ms (Views: 92.8ms | ActiveRecord: 0.0ms)
1814
+  (0.1ms) rollback transaction
1815
+  (0.0ms) begin transaction
1816
+ Started GET "/about/partners" for 127.0.0.1 at 2013-07-24 12:51:32 +0200
1817
+ Processing by Seiten::PagesController#show as HTML
1818
+ Parameters: {"page"=>"about/partners"}
1819
+ Completed 200 OK in 84ms (Views: 82.6ms | ActiveRecord: 0.0ms)
1820
+  (0.1ms) rollback transaction
1821
+  (0.0ms) begin transaction
1822
+ Started GET "/about/partners" for 127.0.0.1 at 2013-07-24 12:51:32 +0200
1823
+ Processing by Seiten::PagesController#show as HTML
1824
+ Parameters: {"page"=>"about/partners"}
1825
+ Completed 200 OK in 106ms (Views: 104.6ms | ActiveRecord: 0.0ms)
1826
+  (0.0ms) rollback transaction
1827
+  (0.1ms) begin transaction
1828
+  (0.0ms) rollback transaction
1829
+ Connecting to database specified by database.yml
1830
+  (0.2ms) begin transaction
1831
+ Started GET "/" for 127.0.0.1 at 2013-07-24 12:51:49 +0200
1832
+ Processing by Seiten::PagesController#show as HTML
1833
+ Rendered app/pages/home.html.erb (0.2ms)
1834
+ Rendered /Users/pulleasy/code/seiten/app/views/seiten/pages/show.html.erb within layouts/application (1.9ms)
1835
+ Completed 200 OK in 58ms (Views: 56.2ms | ActiveRecord: 0.0ms)
1836
+  (0.1ms) rollback transaction
1837
+  (0.0ms) begin transaction
1838
+ Started GET "/about" for 127.0.0.1 at 2013-07-24 12:51:49 +0200
1839
+ Started GET "/about/our-team" for 127.0.0.1 at 2013-07-24 12:51:49 +0200
1840
+ Processing by Seiten::PagesController#show as HTML
1841
+ Parameters: {"page"=>"about/our-team"}
1842
+ Completed 200 OK in 104ms (Views: 102.3ms | ActiveRecord: 0.0ms)
1843
+  (0.1ms) rollback transaction
1844
+  (0.0ms) begin transaction
1845
+ Started GET "/" for 127.0.0.1 at 2013-07-24 12:51:49 +0200
1846
+ Processing by Seiten::PagesController#show as HTML
1847
+ Completed 200 OK in 51ms (Views: 49.4ms | ActiveRecord: 0.0ms)
1848
+ Started GET "/contact" for 127.0.0.1 at 2013-07-24 12:51:49 +0200
1849
+ Processing by Seiten::PagesController#show as HTML
1850
+ Parameters: {"page"=>"contact"}
1851
+ Completed 200 OK in 69ms (Views: 67.5ms | ActiveRecord: 0.0ms)
1852
+  (0.1ms) rollback transaction
1853
+  (0.0ms) begin transaction
1854
+ Started GET "/" for 127.0.0.1 at 2013-07-24 12:51:49 +0200
1855
+ Processing by Seiten::PagesController#show as HTML
1856
+ Completed 200 OK in 51ms (Views: 49.5ms | ActiveRecord: 0.0ms)
1857
+  (0.0ms) rollback transaction
1858
+  (0.0ms) begin transaction
1859
+ Started GET "/about/our-team/switzerland" for 127.0.0.1 at 2013-07-24 12:51:49 +0200
1860
+ Processing by Seiten::PagesController#show as HTML
1861
+ Parameters: {"page"=>"about/our-team/switzerland"}
1862
+ Completed 200 OK in 112ms (Views: 110.8ms | ActiveRecord: 0.0ms)
1863
+  (0.1ms) rollback transaction
1864
+  (0.0ms) begin transaction
1865
+ Started GET "/about/our-team/switzerland" for 127.0.0.1 at 2013-07-24 12:51:49 +0200
1866
+ Processing by Seiten::PagesController#show as HTML
1867
+ Parameters: {"page"=>"about/our-team/switzerland"}
1868
+ Completed 200 OK in 112ms (Views: 110.9ms | ActiveRecord: 0.0ms)
1869
+ Started GET "/about/our-team" for 127.0.0.1 at 2013-07-24 12:51:49 +0200
1870
+ Processing by Seiten::PagesController#show as HTML
1871
+ Parameters: {"page"=>"about/our-team"}
1872
+ Completed 200 OK in 102ms (Views: 101.1ms | ActiveRecord: 0.0ms)
1873
+  (0.0ms) rollback transaction
1874
+  (0.0ms) begin transaction
1875
+ Started GET "/" for 127.0.0.1 at 2013-07-24 12:51:49 +0200
1876
+ Processing by Seiten::PagesController#show as HTML
1877
+ Completed 200 OK in 26ms (Views: 24.6ms | ActiveRecord: 0.0ms)
1878
+ Started GET "/products/web-development" for 127.0.0.1 at 2013-07-24 12:51:49 +0200
1879
+ Processing by Seiten::PagesController#show as HTML
1880
+ Parameters: {"page"=>"products/web-development"}
1881
+ Completed 200 OK in 93ms (Views: 91.6ms | ActiveRecord: 0.0ms)
1882
+  (0.1ms) rollback transaction
1883
+  (0.0ms) begin transaction
1884
+ Started GET "/about/partners" for 127.0.0.1 at 2013-07-24 12:51:50 +0200
1885
+ Processing by Seiten::PagesController#show as HTML
1886
+ Parameters: {"page"=>"about/partners"}
1887
+ Completed 200 OK in 84ms (Views: 82.7ms | ActiveRecord: 0.0ms)
1888
+  (0.1ms) rollback transaction
1889
+  (0.0ms) begin transaction
1890
+ Started GET "/about/partners" for 127.0.0.1 at 2013-07-24 12:51:50 +0200
1891
+ Processing by Seiten::PagesController#show as HTML
1892
+ Parameters: {"page"=>"about/partners"}
1893
+ Completed 200 OK in 106ms (Views: 104.7ms | ActiveRecord: 0.0ms)
1894
+  (0.0ms) rollback transaction
1895
+  (0.1ms) begin transaction
1896
+  (0.0ms) rollback transaction
1897
+ Connecting to database specified by database.yml
1898
+  (0.2ms) begin transaction
1899
+ Started GET "/" for 127.0.0.1 at 2013-07-24 12:52:34 +0200
1900
+ Processing by Seiten::PagesController#show as HTML
1901
+ Rendered app/pages/home.html.erb (0.2ms)
1902
+ Rendered /Users/pulleasy/code/seiten/app/views/seiten/pages/show.html.erb within layouts/application (1.7ms)
1903
+ Completed 200 OK in 56ms (Views: 54.9ms | ActiveRecord: 0.0ms)
1904
+  (0.1ms) rollback transaction
1905
+  (0.0ms) begin transaction
1906
+ Started GET "/about" for 127.0.0.1 at 2013-07-24 12:52:34 +0200
1907
+ Started GET "/about/our-team" for 127.0.0.1 at 2013-07-24 12:52:34 +0200
1908
+ Processing by Seiten::PagesController#show as HTML
1909
+ Parameters: {"page"=>"about/our-team"}
1910
+ Completed 200 OK in 103ms (Views: 101.5ms | ActiveRecord: 0.0ms)
1911
+  (0.1ms) rollback transaction
1912
+  (0.0ms) begin transaction
1913
+ Started GET "/" for 127.0.0.1 at 2013-07-24 12:52:34 +0200
1914
+ Processing by Seiten::PagesController#show as HTML
1915
+ Completed 200 OK in 50ms (Views: 48.6ms | ActiveRecord: 0.0ms)
1916
+ Started GET "/contact" for 127.0.0.1 at 2013-07-24 12:52:34 +0200
1917
+ Processing by Seiten::PagesController#show as HTML
1918
+ Parameters: {"page"=>"contact"}
1919
+ Completed 200 OK in 69ms (Views: 67.5ms | ActiveRecord: 0.0ms)
1920
+  (0.1ms) rollback transaction
1921
+  (0.0ms) begin transaction
1922
+ Started GET "/" for 127.0.0.1 at 2013-07-24 12:52:34 +0200
1923
+ Processing by Seiten::PagesController#show as HTML
1924
+ Completed 200 OK in 50ms (Views: 48.7ms | ActiveRecord: 0.0ms)
1925
+  (0.0ms) rollback transaction
1926
+  (0.0ms) begin transaction
1927
+ Started GET "/about/our-team/switzerland" for 127.0.0.1 at 2013-07-24 12:52:34 +0200
1928
+ Processing by Seiten::PagesController#show as HTML
1929
+ Parameters: {"page"=>"about/our-team/switzerland"}
1930
+ Completed 200 OK in 111ms (Views: 110.1ms | ActiveRecord: 0.0ms)
1931
+  (0.1ms) rollback transaction
1932
+  (0.0ms) begin transaction
1933
+ Started GET "/about/our-team/switzerland" for 127.0.0.1 at 2013-07-24 12:52:35 +0200
1934
+ Processing by Seiten::PagesController#show as HTML
1935
+ Parameters: {"page"=>"about/our-team/switzerland"}
1936
+ Completed 200 OK in 111ms (Views: 109.2ms | ActiveRecord: 0.0ms)
1937
+ Started GET "/about/our-team" for 127.0.0.1 at 2013-07-24 12:52:35 +0200
1938
+ Processing by Seiten::PagesController#show as HTML
1939
+ Parameters: {"page"=>"about/our-team"}
1940
+ Completed 200 OK in 100ms (Views: 98.7ms | ActiveRecord: 0.0ms)
1941
+  (0.0ms) rollback transaction
1942
+  (0.0ms) begin transaction
1943
+ Started GET "/" for 127.0.0.1 at 2013-07-24 12:52:35 +0200
1944
+ Processing by Seiten::PagesController#show as HTML
1945
+ Completed 200 OK in 26ms (Views: 24.3ms | ActiveRecord: 0.0ms)
1946
+ Started GET "/products/web-development" for 127.0.0.1 at 2013-07-24 12:52:35 +0200
1947
+ Processing by Seiten::PagesController#show as HTML
1948
+ Parameters: {"page"=>"products/web-development"}
1949
+ Completed 200 OK in 94ms (Views: 92.4ms | ActiveRecord: 0.0ms)
1950
+  (0.1ms) rollback transaction
1951
+  (0.0ms) begin transaction
1952
+ Started GET "/about/partners" for 127.0.0.1 at 2013-07-24 12:52:35 +0200
1953
+ Processing by Seiten::PagesController#show as HTML
1954
+ Parameters: {"page"=>"about/partners"}
1955
+ Completed 200 OK in 82ms (Views: 80.9ms | ActiveRecord: 0.0ms)
1956
+  (0.1ms) rollback transaction
1957
+  (0.0ms) begin transaction
1958
+ Started GET "/about/partners" for 127.0.0.1 at 2013-07-24 12:52:35 +0200
1959
+ Processing by Seiten::PagesController#show as HTML
1960
+ Parameters: {"page"=>"about/partners"}
1961
+ Completed 200 OK in 105ms (Views: 104.0ms | ActiveRecord: 0.0ms)
1962
+  (0.0ms) rollback transaction
1963
+  (0.1ms) begin transaction
1964
+  (0.0ms) rollback transaction
1965
+ Connecting to database specified by database.yml
1966
+  (0.2ms) begin transaction
1967
+ Started GET "/" for 127.0.0.1 at 2013-07-24 12:52:56 +0200
1968
+ Processing by Seiten::PagesController#show as HTML
1969
+ Rendered app/pages/home.html.erb (0.2ms)
1970
+ Rendered /Users/pulleasy/code/seiten/app/views/seiten/pages/show.html.erb within layouts/application (1.8ms)
1971
+ Completed 200 OK in 56ms (Views: 54.8ms | ActiveRecord: 0.0ms)
1972
+  (0.1ms) rollback transaction
1973
+  (0.0ms) begin transaction
1974
+ Started GET "/about" for 127.0.0.1 at 2013-07-24 12:52:57 +0200
1975
+ Started GET "/about/our-team" for 127.0.0.1 at 2013-07-24 12:52:57 +0200
1976
+ Processing by Seiten::PagesController#show as HTML
1977
+ Parameters: {"page"=>"about/our-team"}
1978
+ Completed 200 OK in 102ms (Views: 100.9ms | ActiveRecord: 0.0ms)
1979
+  (0.1ms) rollback transaction
1980
+  (0.0ms) begin transaction
1981
+ Started GET "/" for 127.0.0.1 at 2013-07-24 12:52:57 +0200
1982
+ Processing by Seiten::PagesController#show as HTML
1983
+ Completed 200 OK in 49ms (Views: 48.2ms | ActiveRecord: 0.0ms)
1984
+ Started GET "/contact" for 127.0.0.1 at 2013-07-24 12:52:57 +0200
1985
+ Processing by Seiten::PagesController#show as HTML
1986
+ Parameters: {"page"=>"contact"}
1987
+ Completed 200 OK in 68ms (Views: 66.6ms | ActiveRecord: 0.0ms)
1988
+  (0.1ms) rollback transaction
1989
+  (0.0ms) begin transaction
1990
+ Started GET "/" for 127.0.0.1 at 2013-07-24 12:52:57 +0200
1991
+ Processing by Seiten::PagesController#show as HTML
1992
+ Completed 200 OK in 49ms (Views: 48.2ms | ActiveRecord: 0.0ms)
1993
+  (0.0ms) rollback transaction
1994
+  (0.0ms) begin transaction
1995
+ Started GET "/about/our-team/switzerland" for 127.0.0.1 at 2013-07-24 12:52:57 +0200
1996
+ Processing by Seiten::PagesController#show as HTML
1997
+ Parameters: {"page"=>"about/our-team/switzerland"}
1998
+ Completed 200 OK in 110ms (Views: 109.2ms | ActiveRecord: 0.0ms)
1999
+  (0.1ms) rollback transaction
2000
+  (0.0ms) begin transaction
2001
+ Started GET "/about/our-team/switzerland" for 127.0.0.1 at 2013-07-24 12:52:57 +0200
2002
+ Processing by Seiten::PagesController#show as HTML
2003
+ Parameters: {"page"=>"about/our-team/switzerland"}
2004
+ Completed 200 OK in 111ms (Views: 109.3ms | ActiveRecord: 0.0ms)
2005
+ Started GET "/about/our-team" for 127.0.0.1 at 2013-07-24 12:52:57 +0200
2006
+ Processing by Seiten::PagesController#show as HTML
2007
+ Parameters: {"page"=>"about/our-team"}
2008
+ Completed 200 OK in 100ms (Views: 98.7ms | ActiveRecord: 0.0ms)
2009
+  (0.0ms) rollback transaction
2010
+  (0.0ms) begin transaction
2011
+ Started GET "/" for 127.0.0.1 at 2013-07-24 12:52:57 +0200
2012
+ Processing by Seiten::PagesController#show as HTML
2013
+ Completed 200 OK in 26ms (Views: 24.7ms | ActiveRecord: 0.0ms)
2014
+ Started GET "/products/web-development" for 127.0.0.1 at 2013-07-24 12:52:57 +0200
2015
+ Processing by Seiten::PagesController#show as HTML
2016
+ Parameters: {"page"=>"products/web-development"}
2017
+ Completed 200 OK in 91ms (Views: 90.0ms | ActiveRecord: 0.0ms)
2018
+  (0.1ms) rollback transaction
2019
+  (0.0ms) begin transaction
2020
+ Started GET "/about/partners" for 127.0.0.1 at 2013-07-24 12:52:57 +0200
2021
+ Processing by Seiten::PagesController#show as HTML
2022
+ Parameters: {"page"=>"about/partners"}
2023
+ Completed 200 OK in 83ms (Views: 81.3ms | ActiveRecord: 0.0ms)
2024
+  (0.1ms) rollback transaction
2025
+  (0.0ms) begin transaction
2026
+ Started GET "/about/partners" for 127.0.0.1 at 2013-07-24 12:52:57 +0200
2027
+ Processing by Seiten::PagesController#show as HTML
2028
+ Parameters: {"page"=>"about/partners"}
2029
+ Completed 200 OK in 105ms (Views: 103.5ms | ActiveRecord: 0.0ms)
2030
+  (0.0ms) rollback transaction
2031
+  (0.1ms) begin transaction
2032
+  (0.0ms) rollback transaction
2033
+ Connecting to database specified by database.yml
2034
+  (0.2ms) begin transaction
2035
+ Started GET "/" for 127.0.0.1 at 2013-07-24 12:56:13 +0200
2036
+ Processing by Seiten::PagesController#show as HTML
2037
+ Rendered app/pages/home.html.erb (0.2ms)
2038
+ Rendered /Users/pulleasy/code/seiten/app/views/seiten/pages/show.html.erb within layouts/application (1.8ms)
2039
+ Completed 200 OK in 58ms (Views: 56.3ms | ActiveRecord: 0.0ms)
2040
+  (0.1ms) rollback transaction
2041
+  (0.0ms) begin transaction
2042
+ Started GET "/about" for 127.0.0.1 at 2013-07-24 12:56:13 +0200
2043
+ Started GET "/about/our-team" for 127.0.0.1 at 2013-07-24 12:56:13 +0200
2044
+ Processing by Seiten::PagesController#show as HTML
2045
+ Parameters: {"page"=>"about/our-team"}
2046
+ Completed 200 OK in 105ms (Views: 104.0ms | ActiveRecord: 0.0ms)
2047
+  (0.1ms) rollback transaction
2048
+  (0.0ms) begin transaction
2049
+ Started GET "/" for 127.0.0.1 at 2013-07-24 12:56:13 +0200
2050
+ Processing by Seiten::PagesController#show as HTML
2051
+ Completed 200 OK in 51ms (Views: 49.9ms | ActiveRecord: 0.0ms)
2052
+ Started GET "/contact" for 127.0.0.1 at 2013-07-24 12:56:13 +0200
2053
+ Processing by Seiten::PagesController#show as HTML
2054
+ Parameters: {"page"=>"contact"}
2055
+ Completed 200 OK in 69ms (Views: 68.0ms | ActiveRecord: 0.0ms)
2056
+  (0.1ms) rollback transaction
2057
+  (0.0ms) begin transaction
2058
+ Started GET "/" for 127.0.0.1 at 2013-07-24 12:56:13 +0200
2059
+ Processing by Seiten::PagesController#show as HTML
2060
+ Completed 200 OK in 51ms (Views: 49.4ms | ActiveRecord: 0.0ms)
2061
+  (0.0ms) rollback transaction
2062
+  (0.0ms) begin transaction
2063
+ Started GET "/about/our-team/switzerland" for 127.0.0.1 at 2013-07-24 12:56:13 +0200
2064
+ Processing by Seiten::PagesController#show as HTML
2065
+ Parameters: {"page"=>"about/our-team/switzerland"}
2066
+ Completed 200 OK in 113ms (Views: 112.1ms | ActiveRecord: 0.0ms)
2067
+  (0.1ms) rollback transaction
2068
+  (0.0ms) begin transaction
2069
+ Started GET "/about/our-team/switzerland" for 127.0.0.1 at 2013-07-24 12:56:14 +0200
2070
+ Processing by Seiten::PagesController#show as HTML
2071
+ Parameters: {"page"=>"about/our-team/switzerland"}
2072
+ Completed 200 OK in 114ms (Views: 112.5ms | ActiveRecord: 0.0ms)
2073
+ Started GET "/about/our-team" for 127.0.0.1 at 2013-07-24 12:56:14 +0200
2074
+ Processing by Seiten::PagesController#show as HTML
2075
+ Parameters: {"page"=>"about/our-team"}
2076
+ Completed 200 OK in 102ms (Views: 101.1ms | ActiveRecord: 0.0ms)
2077
+  (0.0ms) rollback transaction
2078
+  (0.0ms) begin transaction
2079
+ Started GET "/" for 127.0.0.1 at 2013-07-24 12:56:14 +0200
2080
+ Processing by Seiten::PagesController#show as HTML
2081
+ Completed 200 OK in 27ms (Views: 25.3ms | ActiveRecord: 0.0ms)
2082
+ Started GET "/products/web-development" for 127.0.0.1 at 2013-07-24 12:56:14 +0200
2083
+ Processing by Seiten::PagesController#show as HTML
2084
+ Parameters: {"page"=>"products/web-development"}
2085
+ Completed 200 OK in 93ms (Views: 92.2ms | ActiveRecord: 0.0ms)
2086
+  (0.1ms) rollback transaction
2087
+  (0.0ms) begin transaction
2088
+ Started GET "/about/partners" for 127.0.0.1 at 2013-07-24 12:56:14 +0200
2089
+ Processing by Seiten::PagesController#show as HTML
2090
+ Parameters: {"page"=>"about/partners"}
2091
+ Completed 200 OK in 84ms (Views: 82.5ms | ActiveRecord: 0.0ms)
2092
+  (0.1ms) rollback transaction
2093
+  (0.0ms) begin transaction
2094
+ Started GET "/secret" for 127.0.0.1 at 2013-07-24 12:56:14 +0200
2095
+ Processing by PagesController#secret as HTML
2096
+ Completed 500 Internal Server Error in 56ms
2097
+  (0.1ms) rollback transaction
2098
+  (0.1ms) begin transaction
2099
+ Started GET "/about/partners" for 127.0.0.1 at 2013-07-24 12:56:14 +0200
2100
+ Processing by Seiten::PagesController#show as HTML
2101
+ Parameters: {"page"=>"about/partners"}
2102
+ Completed 200 OK in 108ms (Views: 106.3ms | ActiveRecord: 0.0ms)
2103
+  (0.0ms) rollback transaction
2104
+  (0.1ms) begin transaction
2105
+  (0.0ms) rollback transaction
2106
+ Connecting to database specified by database.yml
2107
+  (0.2ms) begin transaction
2108
+ Started GET "/" for 127.0.0.1 at 2013-07-24 12:57:25 +0200
2109
+ Processing by Seiten::PagesController#show as HTML
2110
+ Rendered app/pages/home.html.erb (0.3ms)
2111
+ Rendered /Users/pulleasy/code/seiten/app/views/seiten/pages/show.html.erb within layouts/application (1.9ms)
2112
+ Completed 500 Internal Server Error in 57ms
2113
+  (0.1ms) rollback transaction
2114
+  (0.1ms) begin transaction
2115
+ Started GET "/about" for 127.0.0.1 at 2013-07-24 12:57:25 +0200
2116
+ Started GET "/about/our-team" for 127.0.0.1 at 2013-07-24 12:57:25 +0200
2117
+ Processing by Seiten::PagesController#show as HTML
2118
+ Parameters: {"page"=>"about/our-team"}
2119
+ Completed 500 Internal Server Error in 78ms
2120
+  (0.1ms) rollback transaction
2121
+  (0.1ms) begin transaction
2122
+ Started GET "/" for 127.0.0.1 at 2013-07-24 12:57:25 +0200
2123
+ Processing by Seiten::PagesController#show as HTML
2124
+ Completed 500 Internal Server Error in 50ms
2125
+  (0.0ms) rollback transaction
2126
+  (0.1ms) begin transaction
2127
+ Started GET "/" for 127.0.0.1 at 2013-07-24 12:57:25 +0200
2128
+ Processing by Seiten::PagesController#show as HTML
2129
+ Completed 500 Internal Server Error in 52ms
2130
+  (0.0ms) rollback transaction
2131
+  (0.0ms) begin transaction
2132
+ Started GET "/about/our-team/switzerland" for 127.0.0.1 at 2013-07-24 12:57:26 +0200
2133
+ Processing by Seiten::PagesController#show as HTML
2134
+ Parameters: {"page"=>"about/our-team/switzerland"}
2135
+ Completed 500 Internal Server Error in 85ms
2136
+  (0.1ms) rollback transaction
2137
+  (0.1ms) begin transaction
2138
+ Started GET "/about/our-team/switzerland" for 127.0.0.1 at 2013-07-24 12:57:26 +0200
2139
+ Processing by Seiten::PagesController#show as HTML
2140
+ Parameters: {"page"=>"about/our-team/switzerland"}
2141
+ Completed 500 Internal Server Error in 107ms
2142
+  (0.0ms) rollback transaction
2143
+  (0.1ms) begin transaction
2144
+ Started GET "/" for 127.0.0.1 at 2013-07-24 12:57:26 +0200
2145
+ Processing by Seiten::PagesController#show as HTML
2146
+ Completed 500 Internal Server Error in 50ms
2147
+  (0.0ms) rollback transaction
2148
+  (0.1ms) begin transaction
2149
+ Started GET "/about/partners" for 127.0.0.1 at 2013-07-24 12:57:26 +0200
2150
+ Processing by Seiten::PagesController#show as HTML
2151
+ Parameters: {"page"=>"about/partners"}
2152
+ Completed 500 Internal Server Error in 105ms
2153
+  (0.1ms) rollback transaction
2154
+  (0.1ms) begin transaction
2155
+ Started GET "/secret" for 127.0.0.1 at 2013-07-24 12:57:26 +0200
2156
+ Processing by PagesController#secret as HTML
2157
+ Completed 500 Internal Server Error in 28ms
2158
+  (0.1ms) rollback transaction
2159
+  (0.0ms) begin transaction
2160
+ Started GET "/about/partners" for 127.0.0.1 at 2013-07-24 12:57:26 +0200
2161
+ Processing by Seiten::PagesController#show as HTML
2162
+ Parameters: {"page"=>"about/partners"}
2163
+ Completed 500 Internal Server Error in 103ms
2164
+  (0.1ms) rollback transaction
2165
+  (0.1ms) begin transaction
2166
+  (0.0ms) rollback transaction
2167
+ Connecting to database specified by database.yml
2168
+  (0.2ms) begin transaction
2169
+ Started GET "/" for 127.0.0.1 at 2013-07-24 12:57:39 +0200
2170
+ Processing by Seiten::PagesController#show as HTML
2171
+ Rendered app/pages/home.html.erb (0.2ms)
2172
+ Rendered /Users/pulleasy/code/seiten/app/views/seiten/pages/show.html.erb within layouts/application (1.8ms)
2173
+ Completed 200 OK in 58ms (Views: 56.0ms | ActiveRecord: 0.0ms)
2174
+  (0.1ms) rollback transaction
2175
+  (0.0ms) begin transaction
2176
+ Started GET "/about" for 127.0.0.1 at 2013-07-24 12:57:39 +0200
2177
+ Started GET "/about/our-team" for 127.0.0.1 at 2013-07-24 12:57:39 +0200
2178
+ Processing by Seiten::PagesController#show as HTML
2179
+ Parameters: {"page"=>"about/our-team"}
2180
+ Completed 200 OK in 103ms (Views: 101.7ms | ActiveRecord: 0.0ms)
2181
+  (0.1ms) rollback transaction
2182
+  (0.0ms) begin transaction
2183
+ Started GET "/" for 127.0.0.1 at 2013-07-24 12:57:39 +0200
2184
+ Processing by Seiten::PagesController#show as HTML
2185
+ Completed 200 OK in 50ms (Views: 49.2ms | ActiveRecord: 0.0ms)
2186
+ Started GET "/contact" for 127.0.0.1 at 2013-07-24 12:57:39 +0200
2187
+ Processing by Seiten::PagesController#show as HTML
2188
+ Parameters: {"page"=>"contact"}
2189
+ Completed 200 OK in 68ms (Views: 66.9ms | ActiveRecord: 0.0ms)
2190
+  (0.1ms) rollback transaction
2191
+  (0.0ms) begin transaction
2192
+ Started GET "/" for 127.0.0.1 at 2013-07-24 12:57:39 +0200
2193
+ Processing by Seiten::PagesController#show as HTML
2194
+ Completed 200 OK in 50ms (Views: 49.0ms | ActiveRecord: 0.0ms)
2195
+  (0.0ms) rollback transaction
2196
+  (0.0ms) begin transaction
2197
+ Started GET "/about/our-team/switzerland" for 127.0.0.1 at 2013-07-24 12:57:39 +0200
2198
+ Processing by Seiten::PagesController#show as HTML
2199
+ Parameters: {"page"=>"about/our-team/switzerland"}
2200
+ Completed 200 OK in 112ms (Views: 111.1ms | ActiveRecord: 0.0ms)
2201
+  (0.1ms) rollback transaction
2202
+  (0.0ms) begin transaction
2203
+ Started GET "/about/our-team/switzerland" for 127.0.0.1 at 2013-07-24 12:57:39 +0200
2204
+ Processing by Seiten::PagesController#show as HTML
2205
+ Parameters: {"page"=>"about/our-team/switzerland"}
2206
+ Completed 200 OK in 112ms (Views: 110.9ms | ActiveRecord: 0.0ms)
2207
+ Started GET "/about/our-team" for 127.0.0.1 at 2013-07-24 12:57:39 +0200
2208
+ Processing by Seiten::PagesController#show as HTML
2209
+ Parameters: {"page"=>"about/our-team"}
2210
+ Completed 200 OK in 101ms (Views: 100.2ms | ActiveRecord: 0.0ms)
2211
+  (0.0ms) rollback transaction
2212
+  (0.0ms) begin transaction
2213
+ Started GET "/" for 127.0.0.1 at 2013-07-24 12:57:39 +0200
2214
+ Processing by Seiten::PagesController#show as HTML
2215
+ Completed 200 OK in 26ms (Views: 24.8ms | ActiveRecord: 0.0ms)
2216
+ Started GET "/products/web-development" for 127.0.0.1 at 2013-07-24 12:57:39 +0200
2217
+ Processing by Seiten::PagesController#show as HTML
2218
+ Parameters: {"page"=>"products/web-development"}
2219
+ Completed 200 OK in 92ms (Views: 91.0ms | ActiveRecord: 0.0ms)
2220
+  (0.1ms) rollback transaction
2221
+  (0.0ms) begin transaction
2222
+ Started GET "/about/partners" for 127.0.0.1 at 2013-07-24 12:57:39 +0200
2223
+ Processing by Seiten::PagesController#show as HTML
2224
+ Parameters: {"page"=>"about/partners"}
2225
+ Completed 200 OK in 83ms (Views: 82.2ms | ActiveRecord: 0.0ms)
2226
+  (0.1ms) rollback transaction
2227
+  (0.0ms) begin transaction
2228
+ Started GET "/secret" for 127.0.0.1 at 2013-07-24 12:57:40 +0200
2229
+ Processing by PagesController#secret as HTML
2230
+ Completed 500 Internal Server Error in 53ms
2231
+  (0.1ms) rollback transaction
2232
+  (0.1ms) begin transaction
2233
+ Started GET "/about/partners" for 127.0.0.1 at 2013-07-24 12:57:40 +0200
2234
+ Processing by Seiten::PagesController#show as HTML
2235
+ Parameters: {"page"=>"about/partners"}
2236
+ Completed 200 OK in 108ms (Views: 106.1ms | ActiveRecord: 0.0ms)
2237
+  (0.0ms) rollback transaction
2238
+  (0.1ms) begin transaction
2239
+  (0.0ms) rollback transaction
2240
+ Connecting to database specified by database.yml
2241
+  (0.2ms) begin transaction
2242
+ Started GET "/" for 127.0.0.1 at 2013-07-24 12:58:48 +0200
2243
+ Processing by Seiten::PagesController#show as HTML
2244
+ Rendered app/pages/home.html.erb (0.2ms)
2245
+ Rendered /Users/pulleasy/code/seiten/app/views/seiten/pages/show.html.erb within layouts/application (1.9ms)
2246
+ Completed 200 OK in 58ms (Views: 56.3ms | ActiveRecord: 0.0ms)
2247
+  (0.1ms) rollback transaction
2248
+  (0.0ms) begin transaction
2249
+ Started GET "/about" for 127.0.0.1 at 2013-07-24 12:58:48 +0200
2250
+ Started GET "/about/our-team" for 127.0.0.1 at 2013-07-24 12:58:48 +0200
2251
+ Processing by Seiten::PagesController#show as HTML
2252
+ Parameters: {"page"=>"about/our-team"}
2253
+ Completed 200 OK in 104ms (Views: 102.6ms | ActiveRecord: 0.0ms)
2254
+  (0.1ms) rollback transaction
2255
+  (0.0ms) begin transaction
2256
+ Started GET "/" for 127.0.0.1 at 2013-07-24 12:58:48 +0200
2257
+ Processing by Seiten::PagesController#show as HTML
2258
+ Completed 200 OK in 51ms (Views: 49.3ms | ActiveRecord: 0.0ms)
2259
+ Started GET "/contact" for 127.0.0.1 at 2013-07-24 12:58:48 +0200
2260
+ Processing by Seiten::PagesController#show as HTML
2261
+ Parameters: {"page"=>"contact"}
2262
+ Completed 200 OK in 69ms (Views: 68.0ms | ActiveRecord: 0.0ms)
2263
+  (0.1ms) rollback transaction
2264
+  (0.0ms) begin transaction
2265
+ Started GET "/" for 127.0.0.1 at 2013-07-24 12:58:48 +0200
2266
+ Processing by Seiten::PagesController#show as HTML
2267
+ Completed 200 OK in 50ms (Views: 49.2ms | ActiveRecord: 0.0ms)
2268
+  (0.0ms) rollback transaction
2269
+  (0.0ms) begin transaction
2270
+ Started GET "/about/our-team/switzerland" for 127.0.0.1 at 2013-07-24 12:58:48 +0200
2271
+ Processing by Seiten::PagesController#show as HTML
2272
+ Parameters: {"page"=>"about/our-team/switzerland"}
2273
+ Completed 200 OK in 114ms (Views: 113.1ms | ActiveRecord: 0.0ms)
2274
+  (0.1ms) rollback transaction
2275
+  (0.0ms) begin transaction
2276
+ Started GET "/about/our-team/switzerland" for 127.0.0.1 at 2013-07-24 12:58:48 +0200
2277
+ Processing by Seiten::PagesController#show as HTML
2278
+ Parameters: {"page"=>"about/our-team/switzerland"}
2279
+ Completed 200 OK in 112ms (Views: 110.8ms | ActiveRecord: 0.0ms)
2280
+ Started GET "/about/our-team" for 127.0.0.1 at 2013-07-24 12:58:48 +0200
2281
+ Processing by Seiten::PagesController#show as HTML
2282
+ Parameters: {"page"=>"about/our-team"}
2283
+ Completed 200 OK in 102ms (Views: 101.0ms | ActiveRecord: 0.0ms)
2284
+  (0.0ms) rollback transaction
2285
+  (0.0ms) begin transaction
2286
+ Started GET "/" for 127.0.0.1 at 2013-07-24 12:58:49 +0200
2287
+ Processing by Seiten::PagesController#show as HTML
2288
+ Completed 200 OK in 26ms (Views: 24.9ms | ActiveRecord: 0.0ms)
2289
+ Started GET "/products/web-development" for 127.0.0.1 at 2013-07-24 12:58:49 +0200
2290
+ Processing by Seiten::PagesController#show as HTML
2291
+ Parameters: {"page"=>"products/web-development"}
2292
+ Completed 200 OK in 93ms (Views: 91.3ms | ActiveRecord: 0.0ms)
2293
+  (0.1ms) rollback transaction
2294
+  (0.0ms) begin transaction
2295
+ Started GET "/about/partners" for 127.0.0.1 at 2013-07-24 12:58:49 +0200
2296
+ Processing by Seiten::PagesController#show as HTML
2297
+ Parameters: {"page"=>"about/partners"}
2298
+ Completed 200 OK in 83ms (Views: 81.4ms | ActiveRecord: 0.0ms)
2299
+  (0.1ms) rollback transaction
2300
+  (0.0ms) begin transaction
2301
+ Started GET "/secret" for 127.0.0.1 at 2013-07-24 12:58:49 +0200
2302
+ Processing by PagesController#secret as HTML
2303
+ Completed 200 OK in 52ms (Views: 51.3ms | ActiveRecord: 0.0ms)
2304
+  (0.1ms) rollback transaction
2305
+  (0.0ms) begin transaction
2306
+ Started GET "/about/partners" for 127.0.0.1 at 2013-07-24 12:58:49 +0200
2307
+ Processing by Seiten::PagesController#show as HTML
2308
+ Parameters: {"page"=>"about/partners"}
2309
+ Completed 200 OK in 108ms (Views: 106.5ms | ActiveRecord: 0.0ms)
2310
+  (0.0ms) rollback transaction
2311
+  (0.1ms) begin transaction
2312
+  (0.0ms) rollback transaction
2313
+ Connecting to database specified by database.yml
2314
+  (0.2ms) begin transaction
2315
+ Started GET "/" for 127.0.0.1 at 2013-07-24 12:59:32 +0200
2316
+ Processing by Seiten::PagesController#show as HTML
2317
+ Rendered app/pages/home.html.erb (0.2ms)
2318
+ Rendered /Users/pulleasy/code/seiten/app/views/seiten/pages/show.html.erb within layouts/application (1.7ms)
2319
+ Completed 200 OK in 58ms (Views: 56.1ms | ActiveRecord: 0.0ms)
2320
+  (0.1ms) rollback transaction
2321
+  (0.0ms) begin transaction
2322
+ Started GET "/about" for 127.0.0.1 at 2013-07-24 12:59:32 +0200
2323
+ Started GET "/about/our-team" for 127.0.0.1 at 2013-07-24 12:59:32 +0200
2324
+ Processing by Seiten::PagesController#show as HTML
2325
+ Parameters: {"page"=>"about/our-team"}
2326
+ Completed 200 OK in 104ms (Views: 102.7ms | ActiveRecord: 0.0ms)
2327
+  (0.1ms) rollback transaction
2328
+  (0.0ms) begin transaction
2329
+ Started GET "/" for 127.0.0.1 at 2013-07-24 12:59:32 +0200
2330
+ Processing by Seiten::PagesController#show as HTML
2331
+ Completed 200 OK in 51ms (Views: 50.1ms | ActiveRecord: 0.0ms)
2332
+ Started GET "/contact" for 127.0.0.1 at 2013-07-24 12:59:32 +0200
2333
+ Processing by Seiten::PagesController#show as HTML
2334
+ Parameters: {"page"=>"contact"}
2335
+ Completed 200 OK in 69ms (Views: 67.6ms | ActiveRecord: 0.0ms)
2336
+  (0.1ms) rollback transaction
2337
+  (0.0ms) begin transaction
2338
+ Started GET "/" for 127.0.0.1 at 2013-07-24 12:59:33 +0200
2339
+ Processing by Seiten::PagesController#show as HTML
2340
+ Completed 200 OK in 51ms (Views: 49.5ms | ActiveRecord: 0.0ms)
2341
+  (0.0ms) rollback transaction
2342
+  (0.0ms) begin transaction
2343
+ Started GET "/about/our-team/switzerland" for 127.0.0.1 at 2013-07-24 12:59:33 +0200
2344
+ Processing by Seiten::PagesController#show as HTML
2345
+ Parameters: {"page"=>"about/our-team/switzerland"}
2346
+ Completed 200 OK in 114ms (Views: 112.9ms | ActiveRecord: 0.0ms)
2347
+  (0.1ms) rollback transaction
2348
+  (0.0ms) begin transaction
2349
+ Started GET "/about/our-team/switzerland" for 127.0.0.1 at 2013-07-24 12:59:33 +0200
2350
+ Processing by Seiten::PagesController#show as HTML
2351
+ Parameters: {"page"=>"about/our-team/switzerland"}
2352
+ Completed 200 OK in 113ms (Views: 111.5ms | ActiveRecord: 0.0ms)
2353
+ Started GET "/about/our-team" for 127.0.0.1 at 2013-07-24 12:59:33 +0200
2354
+ Processing by Seiten::PagesController#show as HTML
2355
+ Parameters: {"page"=>"about/our-team"}
2356
+ Completed 200 OK in 103ms (Views: 101.3ms | ActiveRecord: 0.0ms)
2357
+  (0.0ms) rollback transaction
2358
+  (0.0ms) begin transaction
2359
+ Started GET "/" for 127.0.0.1 at 2013-07-24 12:59:33 +0200
2360
+ Processing by Seiten::PagesController#show as HTML
2361
+ Completed 200 OK in 27ms (Views: 25.8ms | ActiveRecord: 0.0ms)
2362
+ Started GET "/products/web-development" for 127.0.0.1 at 2013-07-24 12:59:33 +0200
2363
+ Processing by Seiten::PagesController#show as HTML
2364
+ Parameters: {"page"=>"products/web-development"}
2365
+ Completed 200 OK in 94ms (Views: 92.4ms | ActiveRecord: 0.0ms)
2366
+  (0.1ms) rollback transaction
2367
+  (0.0ms) begin transaction
2368
+ Started GET "/about/partners" for 127.0.0.1 at 2013-07-24 12:59:33 +0200
2369
+ Processing by Seiten::PagesController#show as HTML
2370
+ Parameters: {"page"=>"about/partners"}
2371
+ Completed 200 OK in 83ms (Views: 82.1ms | ActiveRecord: 0.0ms)
2372
+  (0.1ms) rollback transaction
2373
+  (0.0ms) begin transaction
2374
+ Started GET "/secret" for 127.0.0.1 at 2013-07-24 12:59:33 +0200
2375
+ Processing by PagesController#secret as HTML
2376
+ Completed 200 OK in 51ms (Views: 50.5ms | ActiveRecord: 0.0ms)
2377
+  (0.1ms) rollback transaction
2378
+  (0.0ms) begin transaction
2379
+ Started GET "/about/partners" for 127.0.0.1 at 2013-07-24 12:59:33 +0200
2380
+ Processing by Seiten::PagesController#show as HTML
2381
+ Parameters: {"page"=>"about/partners"}
2382
+ Completed 200 OK in 105ms (Views: 104.2ms | ActiveRecord: 0.0ms)
2383
+  (0.0ms) rollback transaction
2384
+  (0.1ms) begin transaction
2385
+  (0.0ms) rollback transaction
@@ -65,4 +65,10 @@ class NavigationTest < ActionDispatch::IntegrationTest
65
65
  visit "/about/partners"
66
66
  assert has_xpath?("//a[@href='http://danielpuglisi.com']")
67
67
  end
68
+
69
+ def test_returns_page_with_navigation_which_is_not_defined_in_navigation_config
70
+ visit "/secret"
71
+ assert_equal 200, status_code
72
+ has_content?("This is a secret page")
73
+ end
68
74
  end
data/test/page_test.rb CHANGED
@@ -59,4 +59,8 @@ class PageTest < Test::Unit::TestCase
59
59
  page = Seiten::Page.find_by_slug("/products/logo-design")
60
60
  assert_equal "Logo Design", page.title
61
61
  end
62
+
63
+ def test_returns_nil_for_active_method_when_current_page_is_nil
64
+ assert_equal nil, Seiten::Page.find(1).active?(nil)
65
+ end
62
66
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: seiten
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Puglisi
@@ -76,6 +76,7 @@ files:
76
76
  - test/dummy/app/assets/javascripts/application.js
77
77
  - test/dummy/app/assets/stylesheets/application.css
78
78
  - test/dummy/app/controllers/application_controller.rb
79
+ - test/dummy/app/controllers/pages_controller.rb
79
80
  - test/dummy/app/helpers/application_helper.rb
80
81
  - test/dummy/app/pages/about/our-team/italy.html.erb
81
82
  - test/dummy/app/pages/about/our-team/switzerland.html.erb
@@ -88,6 +89,7 @@ files:
88
89
  - test/dummy/app/pages/products/web-development.html.erb
89
90
  - test/dummy/app/pages/products.html.erb
90
91
  - test/dummy/app/views/layouts/application.html.erb
92
+ - test/dummy/app/views/pages/secret.html.erb
91
93
  - test/dummy/config/application.rb
92
94
  - test/dummy/config/boot.rb
93
95
  - test/dummy/config/database.yml
@@ -151,6 +153,7 @@ test_files:
151
153
  - test/dummy/app/assets/javascripts/application.js
152
154
  - test/dummy/app/assets/stylesheets/application.css
153
155
  - test/dummy/app/controllers/application_controller.rb
156
+ - test/dummy/app/controllers/pages_controller.rb
154
157
  - test/dummy/app/helpers/application_helper.rb
155
158
  - test/dummy/app/pages/about/our-team/italy.html.erb
156
159
  - test/dummy/app/pages/about/our-team/switzerland.html.erb
@@ -163,6 +166,7 @@ test_files:
163
166
  - test/dummy/app/pages/products/web-development.html.erb
164
167
  - test/dummy/app/pages/products.html.erb
165
168
  - test/dummy/app/views/layouts/application.html.erb
169
+ - test/dummy/app/views/pages/secret.html.erb
166
170
  - test/dummy/config/application.rb
167
171
  - test/dummy/config/boot.rb
168
172
  - test/dummy/config/database.yml