This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require "date" | |
| require 'rubygems' | |
| require 'action_view' | |
| class FinancialYear | |
| attr :salary, true | |
| attr :year, true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Sun Feb 01 15:32:20 2009] [notice] Apache/2.2.9 (Ubuntu) Phusion_Passenger/2.1.0 configured -- resuming normal operations | |
| [Mon Feb 02 17:41:59 2009] [notice] caught SIGTERM, shutting down | |
| [Mon Feb 02 17:42:00 2009] [notice] Apache/2.2.9 (Ubuntu) Phusion_Passenger/2.1.0 configured -- resuming normal operations |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| fitwit.local:80 127.0.0.1 - - [02/Feb/2009:17:41:15 -0500] "GET / HTTP/1.1" 500 72 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.5) Gecko/2008121622 Ubuntu/8.10 (intrepid) Firefox/3.0.5" | |
| fitwit.local:80 127.0.0.1 - - [02/Feb/2009:17:41:34 -0500] "GET /favicon.ico HTTP/1.1" 200 - "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.5) Gecko/2008121622 Ubuntu/8.10 (intrepid) Firefox/3.0.5" | |
| fitwit.local:80 127.0.0.1 - - [02/Feb/2009:17:42:03 -0500] "GET / HTTP/1.1" 500 72 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.5) Gecko/2008121622 Ubuntu/8.10 (intrepid) Firefox/3.0.5" | |
| fitwit.local:80 127.0.0.1 - - [02/Feb/2009:19:49:47 -0500] "GET / HTTP/1.1" 500 72 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.5) Gecko/2008121622 Ubuntu/8.10 (intrepid) Firefox/3.0.5" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sites-available/default: ErrorLog /var/log/apache2/error.log | |
| sites-available/default-ssl: ErrorLog /var/log/apache2/error.log | |
| sites-enabled/000-default: ErrorLog /var/log/apache2/error.log |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Sun Feb 01 15:32:20 2009] [notice] Apache/2.2.9 (Ubuntu) Phusion_Passenger/2.1.0 configured -- resuming normal operations | |
| [Mon Feb 02 17:41:59 2009] [notice] caught SIGTERM, shutting down | |
| [Mon Feb 02 17:42:00 2009] [notice] Apache/2.2.9 (Ubuntu) Phusion_Passenger/2.1.0 configured -- resuming normal operations |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| fitwit.local:80 127.0.0.1 - - [02/Feb/2009:17:41:15 -0500] "GET / HTTP/1.1" 500 72 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.5) Gecko/2008121622 Ubuntu/8.10 (intrepid) Firefox/3.0.5" | |
| fitwit.local:80 127.0.0.1 - - [02/Feb/2009:17:41:34 -0500] "GET /favicon.ico HTTP/1.1" 200 - "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.5) Gecko/2008121622 Ubuntu/8.10 (intrepid) Firefox/3.0.5" | |
| fitwit.local:80 127.0.0.1 - - [02/Feb/2009:17:42:03 -0500] "GET / HTTP/1.1" 500 72 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.5) Gecko/2008121622 Ubuntu/8.10 (intrepid) Firefox/3.0.5" | |
| fitwit.local:80 127.0.0.1 - - [02/Feb/2009:19:49:47 -0500] "GET / HTTP/1.1" 500 72 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.5) Gecko/2008121622 Ubuntu/8.10 (intrepid) Firefox/3.0.5" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <VirtualHost *:80> | |
| ServerName fitwit.local | |
| DocumentRoot /home/tim/FitWitWeb/public | |
| RailsEnv staging | |
| </VirtualHost> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $$('.box').each( | |
| function(b){ | |
| var box = b.down('input'), exp = b.down('.explanation'); | |
| exp.hide(); | |
| box.observe('click', function(e){ exp.toggle();}); | |
| } | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Copyright (c) 2005 David Heinemeier Hansson | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining | |
| # a copy of this software and associated documentation files (the | |
| # "Software"), to deal in the Software without restriction, including | |
| # without limitation the rights to use, copy, modify, merge, publish, | |
| # distribute, sublicense, and/or sell copies of the Software, and to | |
| # permit persons to whom the Software is furnished to do so, subject to | |
| # the following conditions: | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def ssl_required? | |
| # (Comment this one line out if you want to test ssl locally) | |
| return false if local_request? | |
| # always return false for tests | |
| return false if RAILS_ENV == 'test' | |
| if RAILS_ENV == 'staging' | |
| # need to set custom request.host |