time-exchange-gr/oscurrency — Issue #60: NoMethodError in bids#create
Author: 3point2
Created: 2011-12-16 02:44:34+00:00
State: open

```
A NoMethodError occurred in bids#create:

undefined method `>' for nil:NilClass
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/activesupport-2.3.14/lib/active_support/whiny_nil.rb:52:in `method_missing'

-------------------------------
Request:
-------------------------------

* URL : http://www.time-exchange.gr/reqs/62/bids
* IP address: 46.103.177.153
* Parameters: {"action"=>"create", "authenticity_token"=>"8mZuUe+hp0jscLtAc7yDyxN6EP41jW2rQFEaOIvVXAI=", "bid"=>{"expiration_date"=>"12/04/2011", "estimated_hours"=>"", "private_message_to_requestor"=>"ιδραυλικοσ,πλακασ,ιμε.μπορο,ασου,βαλο.τα,πλακακια,6937619338"}, "req_id"=>"62", "controller"=>"bids"}
* Rails root: /app

-------------------------------
Session:
-------------------------------

* session id: nil
* data: nil

-------------------------------
Environment:
-------------------------------

* CONTENT_LENGTH : 454
* CONTENT_TYPE : application/x-www-form-urlencoded
* GATEWAY_INTERFACE : CGI/1.2
* HTTP_ACCEPT : text/javascript, application/javascript, */*; q=0.01
* HTTP_ACCEPT_CHARSET : ISO-8859-7,utf-8;q=0.7,*;q=0.3
* HTTP_ACCEPT_ENCODING : gzip,deflate,sdch
* HTTP_ACCEPT_LANGUAGE : el-GR,el;q=0.8
* HTTP_CONNECTION : close
* HTTP_COOKIE : person_credentials=e3225c32150d4ebba18a7ec1477ff59e849b0d9ca36c70056ae53ecc0964810ecf6fad8d664669f3659a2bcd9030e1393f5d56f0c764ffd3ef089b14edba6d6c%3A%3A447; _oscurrency_session=BAh7CiIacGVyc29uX2NyZWRlbnRpYWxzX2lkaQK%2FAToQX2NzcmZfdG9rZW4iMThtWnVVZStocDBqc2NMdEFjN3lEeXhONkVQNDFqVzJyUUZFYU9JdlZYQUk9Og9zZXNzaW9uX2lkIiVhMTQ0ZTJjZDdhMmY5MjU2ZDRhODhhYmY3MDM0ZTE2ZSIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNoSGFzaHsABjoKQHVzZWR7ACIXcGVyc29uX2NyZWRlbnRpYWxzIgGAZTMyMjVjMzIxNTBkNGViYmExOGE3ZWMxNDc3ZmY1OWU4NDliMGQ5Y2EzNmM3MDA1NmFlNTNlY2MwOTY0ODEwZWNmNmZhZDhkNjY0NjY5ZjM2NTlhMmJjZDkwMzBlMTM5M2Y1ZDU2ZjBjNzY0ZmZkM2VmMDg5YjE0ZWRiYTZkNmM%3D--2ca94884e0841fb9110d86420a199fb457837ddd
* HTTP_HOST : www.time-exchange.gr
* HTTP_ORIGIN : http://www.time-exchange.gr
* HTTP_REFERER : http://www.time-exchange.gr/groups/1
* HTTP_USER_AGENT : Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.63 Safari/535.7
* HTTP_VERSION : HTTP/1.0
* HTTP_X_FORWARDED_FOR : 46.103.177.153
* HTTP_X_HEROKU_DYNOS_IN_USE : 1
* HTTP_X_HEROKU_QUEUE_DEPTH : 0
* HTTP_X_HEROKU_QUEUE_WAIT_TIME : 0
* HTTP_X_REAL_IP : 46.103.177.153
* HTTP_X_REQUESTED_WITH : XMLHttpRequest
* HTTP_X_REQUEST_START : 1323991855798
* PATH_INFO : /reqs/62/bids
* QUERY_STRING :
* REMOTE_ADDR : 10.217.11.146
* REQUEST_METHOD : POST
* REQUEST_PATH : /reqs/62/bids
* REQUEST_URI : /reqs/62/bids
* SCRIPT_NAME :
* SERVER_NAME : www.time-exchange.gr
* SERVER_PORT : 80
* SERVER_PROTOCOL : HTTP/1.1
* SERVER_SOFTWARE : thin 1.2.6 codename Crazy Delicious
* action_controller.request.path_parameters : actioncreatecontrollerbidsreq_id62
* action_controller.request.query_parameters :
* action_controller.request.request_parameters : authenticity_token8mZuUe+hp0jscLtAc7yDyxN6EP41jW2rQFEaOIvVXAI=bidestimated_hoursexpiration_date12/04/2011private_message_to_requestorιδραυλικοσ,πλακασ,ιμε.μπορο,ασου,βαλο.τα,πλακακια,6937619338
* action_controller.rescue.request : #
* action_controller.rescue.response : #
* action_dispatch.request.unsigned_session_cookie: person_credentials_id447_csrf_token8mZuUe+hp0jscLtAc7yDyxN6EP41jW2rQFEaOIvVXAI=session_ida144e2cd7a2f9256d4a88abf7034e16eperson_credentialse3225c32150d4ebba18a7ec1477ff59e849b0d9ca36c70056ae53ecc0964810ecf6fad8d664669f3659a2bcd9030e1393f5d56f0c764ffd3ef089b14edba6d6cflash
* async.callback : #
* async.close : #
* rack.errors : #
* rack.input : #
* rack.multiprocess : false
* rack.multithread : false
* rack.request.cookie_hash : _oscurrency_sessionBAh7CiIacGVyc29uX2NyZWRlbnRpYWxzX2lkaQK/AToQX2NzcmZfdG9rZW4iMThtWnVVZStocDBqc2NMdEFjN3lEeXhONkVQNDFqVzJyUUZFYU9JdlZYQUk9Og9zZXNzaW9uX2lkIiVhMTQ0ZTJjZDdhMmY5MjU2ZDRhODhhYmY3MDM0ZTE2ZSIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNoSGFzaHsABjoKQHVzZWR7ACIXcGVyc29uX2NyZWRlbnRpYWxzIgGAZTMyMjVjMzIxNTBkNGViYmExOGE3ZWMxNDc3ZmY1OWU4NDliMGQ5Y2EzNmM3MDA1NmFlNTNlY2MwOTY0ODEwZWNmNmZhZDhkNjY0NjY5ZjM2NTlhMmJjZDkwMzBlMTM5M2Y1ZDU2ZjBjNzY0ZmZkM2VmMDg5YjE0ZWRiYTZkNmM=--2ca94884e0841fb9110d86420a199fb457837dddperson_credentialse3225c32150d4ebba18a7ec1477ff59e849b0d9ca36c70056ae53ecc0964810ecf6fad8d664669f3659a2bcd9030e1393f5d56f0c764ffd3ef089b14edba6d6c::447
* rack.request.cookie_string : person_credentials=e3225c32150d4ebba18a7ec1477ff59e849b0d9ca36c70056ae53ecc0964810ecf6fad8d664669f3659a2bcd9030e1393f5d56f0c764ffd3ef089b14edba6d6c%3A%3A447; _oscurrency_session=BAh7CiIacGVyc29uX2NyZWRlbnRpYWxzX2lkaQK%2FAToQX2NzcmZfdG9rZW4iMThtWnVVZStocDBqc2NMdEFjN3lEeXhONkVQNDFqVzJyUUZFYU9JdlZYQUk9Og9zZXNzaW9uX2lkIiVhMTQ0ZTJjZDdhMmY5MjU2ZDRhODhhYmY3MDM0ZTE2ZSIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNoSGFzaHsABjoKQHVzZWR7ACIXcGVyc29uX2NyZWRlbnRpYWxzIgGAZTMyMjVjMzIxNTBkNGViYmExOGE3ZWMxNDc3ZmY1OWU4NDliMGQ5Y2EzNmM3MDA1NmFlNTNlY2MwOTY0ODEwZWNmNmZhZDhkNjY0NjY5ZjM2NTlhMmJjZDkwMzBlMTM5M2Y1ZDU2ZjBjNzY0ZmZkM2VmMDg5YjE0ZWRiYTZkNmM%3D--2ca94884e0841fb9110d86420a199fb457837ddd
* rack.request.form_hash : authenticity_token8mZuUe+hp0jscLtAc7yDyxN6EP41jW2rQFEaOIvVXAI=bidexpiration_date12/04/2011estimated_hoursprivate_message_to_requestorιδραυλικοσ,πλακασ,ιμε.μπορο,ασου,βαλο.τα,πλακακια,6937619338
* rack.request.form_input : #
* rack.request.form_vars : authenticity_token=8mZuUe%2Bhp0jscLtAc7yDyxN6EP41jW2rQFEaOIvVXAI%3D&bid%5Bestimated_hours%5D=&bid%5Bexpiration_date%5D=12%2F04%2F2011&bid%5Bprivate_message_to_requestor%5D=%CE%B9%CE%B4%CF%81%CE%B1%CF%85%CE%BB%CE%B9%CE%BA%CE%BF%CF%83%2C%CF%80%CE%BB%CE%B1%CE%BA%CE%B1%CF%83%2C%CE%B9%CE%BC%CE%B5.%CE%BC%CF%80%CE%BF%CF%81%CE%BF%2C%CE%B1%CF%83%CE%BF%CF%85%2C%CE%B2%CE%B1%CE%BB%CE%BF.%CF%84%CE%B1%2C%CF%80%CE%BB%CE%B1%CE%BA%CE%B1%CE%BA%CE%B9%CE%B1%2C6937619338
* rack.request.query_hash :
* rack.request.query_string :
* rack.run_once : false
* rack.session : person_credentials_id447_csrf_token8mZuUe+hp0jscLtAc7yDyxN6EP41jW2rQFEaOIvVXAI=session_ida144e2cd7a2f9256d4a88abf7034e16eflashperson_credentialse3225c32150d4ebba18a7ec1477ff59e849b0d9ca36c70056ae53ecc0964810ecf6fad8d664669f3659a2bcd9030e1393f5d56f0c764ffd3ef089b14edba6d6c
* rack.session.options : domainpath/expire_afterkey_session_idhttponlytrueida144e2cd7a2f9256d4a88abf7034e16e
* rack.url_scheme : http
* rack.version : 10

* Process: 1
* Server : 506b0243-0730-4878-8fd4-b96613d113be

-------------------------------
Backtrace:
-------------------------------

[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/activesupport-2.3.14/lib/active_support/whiny_nil.rb:52:in `method_missing'
[RAILS_ROOT]/app/models/bid.rb:101:in `validate'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/validations.rb:1110:in `valid_without_callbacks?'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/callbacks.rb:315:in `valid?'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/validations.rb:1088:in `save_without_dirty'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/dirty.rb:79:in `save_without_transactions'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/transactions.rb:229:in `send'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/transactions.rb:229:in `with_transaction_returning_status'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/connection_adapters/abstract/database_statements.rb:136:in `transaction'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/transactions.rb:182:in `transaction'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/transactions.rb:228:in `with_transaction_returning_status'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/transactions.rb:196:in `save_without_unsaved_flag'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/transactions.rb:208:in `rollback_active_record_state!'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/transactions.rb:196:in `save_without_unsaved_flag'
[RAILS_ROOT]/vendor/plugins/active_scaffold/lib/extensions/unsaved_record.rb:15:in `save'
[RAILS_ROOT]/app/controllers/bids_controller.rb:12:in `create'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/mime_responds.rb:106:in `call'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/mime_responds.rb:106:in `respond_to'
[RAILS_ROOT]/app/controllers/bids_controller.rb:11:in `create'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:1333:in `send'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:1333:in `perform_action_without_filters'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/filters.rb:617:in `call_filters'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/filters.rb:610:in `perform_action_without_benchmark'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/activesupport-2.3.14/lib/active_support/core_ext/benchmark.rb:17:in `ms'
/usr/ruby1.8.7/lib/ruby/1.8/benchmark.rb:308:in `realtime'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/activesupport-2.3.14/lib/active_support/core_ext/benchmark.rb:17:in `ms'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/rescue.rb:160:in `perform_action_without_flash'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/flash.rb:151:in `perform_action_without_render_component'
[RAILS_ROOT]/vendor/plugins/render_component/lib/components.rb:39:in `perform_action'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:532:in `send'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:532:in `process_without_filters'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/filters.rb:606:in `process'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:391:in `process'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:386:in `call'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/routing/route_set.rb:438:in `call'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/dispatcher.rb:87:in `dispatch'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/dispatcher.rb:121:in `_call'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/dispatcher.rb:130:in `build_middleware_stack'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/query_cache.rb:29:in `call'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/query_cache.rb:29:in `call'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/query_cache.rb:9:in `cache'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/query_cache.rb:28:in `call'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in `call'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/string_coercion.rb:25:in `call'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/rack-1.1.2/lib/rack/head.rb:9:in `call'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/rack-1.1.2/lib/rack/methodoverride.rb:24:in `call'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/params_parser.rb:15:in `call'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/session/cookie_store.rb:99:in `call'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/activesupport-2.3.14/lib/active_support/cache/strategy/local_cache.rb:25:in `call'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/failsafe.rb:26:in `call'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/rack-1.1.2/lib/rack/lock.rb:11:in `call'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/rack-1.1.2/lib/rack/lock.rb:11:in `synchronize'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/rack-1.1.2/lib/rack/lock.rb:11:in `call'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/dispatcher.rb:106:in `call'
/usr/ruby1.8.7/lib/ruby/gems/1.8/gems/thin-1.2.6/lib/rack/adapter/rails.rb:74:in `call'
/home/heroku_rack/lib/static_assets.rb:9:in `call'
/home/heroku_rack/lib/last_access.rb:15:in `call'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/rack-1.1.2/lib/rack/urlmap.rb:47:in `call'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/rack-1.1.2/lib/rack/urlmap.rb:41:in `each'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/rack-1.1.2/lib/rack/urlmap.rb:41:in `call'
/home/heroku_rack/lib/date_header.rb:14:in `call'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/rack-1.1.2/lib/rack/builder.rb:77:in `call'
/usr/ruby1.8.7/lib/ruby/gems/1.8/gems/thin-1.2.6/lib/thin/connection.rb:76:in `pre_process'
/usr/ruby1.8.7/lib/ruby/gems/1.8/gems/thin-1.2.6/lib/thin/connection.rb:74:in `catch'
/usr/ruby1.8.7/lib/ruby/gems/1.8/gems/thin-1.2.6/lib/thin/connection.rb:74:in `pre_process'
/usr/ruby1.8.7/lib/ruby/gems/1.8/gems/thin-1.2.6/lib/thin/connection.rb:57:in `process'
/usr/ruby1.8.7/lib/ruby/gems/1.8/gems/thin-1.2.6/lib/thin/connection.rb:42:in `receive_data'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run_machine'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run'
/usr/ruby1.8.7/lib/ruby/gems/1.8/gems/thin-1.2.6/lib/thin/backends/base.rb:57:in `start'
/usr/ruby1.8.7/lib/ruby/gems/1.8/gems/thin-1.2.6/lib/thin/server.rb:156:in `start'
/usr/ruby1.8.7/lib/ruby/gems/1.8/gems/thin-1.2.6/lib/thin/controllers/controller.rb:80:in `start'
/usr/ruby1.8.7/lib/ruby/gems/1.8/gems/thin-1.2.6/lib/thin/runner.rb:177:in `send'
/usr/ruby1.8.7/lib/ruby/gems/1.8/gems/thin-1.2.6/lib/thin/runner.rb:177:in `run_command'
/usr/ruby1.8.7/lib/ruby/gems/1.8/gems/thin-1.2.6/lib/thin/runner.rb:143:in `run!'
/usr/ruby1.8.7/lib/ruby/gems/1.8/gems/thin-1.2.6/bin/thin:6
/usr/ruby1.8.7/bin/thin:19:in `load'
/usr/ruby1.8.7/bin/thin:19
```