time-exchange-gr/oscurrency — Issue #79: can't create users from the admin: ReverseAssociationRequired in people#create
Author: 3point2
Created: 2012-01-24 14:43:17+00:00
State: open

```
A ActiveScaffold::ReverseAssociationRequired occurred in people#create:

Association transactions: In order to support :has_one and :has_many where the parent record is new and the child record(s) validate the presence of the parent, ActiveScaffold requires the reverse association (the belongs_to).
[RAILS_ROOT]/vendor/plugins/active_scaffold/lib/active_scaffold/attribute_params.rb:79:in `update_record_from_params'

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

* URL : http://test.time-exchange.gr/admin/people
* IP address: 188.4.52.95
* Parameters: {"commit"=>"Create", "action"=>"create", "authenticity_token"=>"2XYkEmcjvGRQH+r9f6vuJoLRxuB0iQ4HbAMHMzTXWQE=", "controller"=>"admin/people", "_"=>"", "record"=>{"name"=>"Vasili", "password_confirmation"=>"[FILTERED]", "phone"=>"1234", "password"=>"[FILTERED]", "email"=>"vasili.revelas@gmail.com"}}
* Rails root: /app

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

* session id: nil
* data: nil

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

* CONTENT_LENGTH : 241
* CONTENT_TYPE : application/x-www-form-urlencoded; charset=UTF-8
* GATEWAY_INTERFACE : CGI/1.2
* HTTP_ACCEPT : text/javascript, text/html, application/xml, text/xml, */*
* HTTP_ACCEPT_CHARSET : UTF-8,*;q=0.5
* HTTP_ACCEPT_ENCODING : gzip,deflate,sdch
* HTTP_ACCEPT_LANGUAGE : en-US,en;q=0.8,el;q=0.6
* HTTP_CONNECTION : close
* HTTP_COOKIE : person_credentials=ca71c28e8cd0bf5ee29a7992e9ddf944a1b60de9b292601fd8266454e2391c6bd2fa40ac0116ac266848bb5ce0ebeb9bf060cc448d7393714e7ec07d633ed275%3A%3A1; _oscurrency_session=BAh7DzoQX2NzcmZfdG9rZW4iMTJYWWtFbWNqdkdSUUgrcjlmNnZ1Sm9MUnh1QjBpUTRIYkFNSE16VFhXUUU9IhpwZXJzb25fY3JlZGVudGlhbHNfaWRpBiIUYXM6YWRtaW4vcGVvcGxlewY6CWxpc3R7ACIYYXM6YWRtaW4vY2F0ZWdvcmllc3sGOwZ7ACIbYXM6YWRtaW4vbmVpZ2hib3Job29kc3sGOwZ7BiIJcGFnZWkGOg9zZXNzaW9uX2lkIiUxOWM4YjVhMzY4ZmZkODdjYjE1ZjliODBmYzViZTM1ZCIYYXM6YWRtaW4vZmVlZF9wb3N0c3sGOwZ7BiIJcGFnZWkGIgpmbGFzaElDOidBY3Rpb25Db250cm9sbGVyOjpGbGFzaDo6Rmxhc2hIYXNoewAGOgpAdXNlZHsAIhdwZXJzb25fY3JlZGVudGlhbHMiAYBjYTcxYzI4ZThjZDBiZjVlZTI5YTc5OTJlOWRkZjk0NGExYjYwZGU5YjI5MjYwMWZkODI2NjQ1NGUyMzkxYzZiZDJmYTQwYWMwMTE2YWMyNjY4NDhiYjVjZTBlYmViOWJmMDYwY2M0NDhkNzM5MzcxNGU3ZWMwN2Q2MzNlZDI3NSIXYXM6YWRtaW4vZXhjaGFuZ2VzewY7BnsGIglwYWdlaQY%3D--d1a42c5d19d9cfa56100df01cebce3b38eca0cd6
* HTTP_HOST : test.time-exchange.gr
* HTTP_ORIGIN : http://test.time-exchange.gr
* HTTP_REFERER : http://test.time-exchange.gr/admin/people
* HTTP_USER_AGENT : Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.75 Safari/535.7
* HTTP_VERSION : HTTP/1.0
* HTTP_X_FORWARDED_FOR : 188.4.52.95
* HTTP_X_HEROKU_DYNOS_IN_USE : 1
* HTTP_X_HEROKU_QUEUE_DEPTH : 0
* HTTP_X_HEROKU_QUEUE_WAIT_TIME : 1
* HTTP_X_PROTOTYPE_VERSION : 1.6.0.1
* HTTP_X_REAL_IP : 188.4.52.95
* HTTP_X_REQUESTED_WITH : XMLHttpRequest
* HTTP_X_REQUEST_START : 1327416123642
* PATH_INFO : /admin/people
* QUERY_STRING :
* REMOTE_ADDR : 10.92.103.56
* REQUEST_METHOD : POST
* REQUEST_PATH : /admin/people
* REQUEST_URI : /admin/people
* SCRIPT_NAME :
* SERVER_NAME : test.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 : actioncreatecontrolleradmin/people
* action_controller.request.query_parameters :
* action_controller.request.request_parameters : commitCreateauthenticity_token2XYkEmcjvGRQH+r9f6vuJoLRxuB0iQ4HbAMHMzTXWQE=_recordnameVasilipassword_confirmation1234phone1234password1234emailvasili.revelas@gmail.com
* action_controller.rescue.request : #
* action_controller.rescue.response : #
* action_dispatch.request.unsigned_session_cookie: _csrf_token2XYkEmcjvGRQH+r9f6vuJoLRxuB0iQ4HbAMHMzTXWQE=person_credentials_id1as:admin/peoplelistas:admin/categorieslistsession_id19c8b5a368ffd87cb15f9b80fc5be35das:admin/neighborhoodslistpage1as:admin/feed_postslistpage1person_credentialsca71c28e8cd0bf5ee29a7992e9ddf944a1b60de9b292601fd8266454e2391c6bd2fa40ac0116ac266848bb5ce0ebeb9bf060cc448d7393714e7ec07d633ed275flashas:admin/exchangeslistpage1
* async.callback : #
* async.close : #
* rack.errors : #
* rack.input : #
* rack.multiprocess : false
* rack.multithread : false
* rack.request.cookie_hash : _oscurrency_sessionBAh7DzoQX2NzcmZfdG9rZW4iMTJYWWtFbWNqdkdSUUgrcjlmNnZ1Sm9MUnh1QjBpUTRIYkFNSE16VFhXUUU9IhpwZXJzb25fY3JlZGVudGlhbHNfaWRpBiIUYXM6YWRtaW4vcGVvcGxlewY6CWxpc3R7ACIYYXM6YWRtaW4vY2F0ZWdvcmllc3sGOwZ7ACIbYXM6YWRtaW4vbmVpZ2hib3Job29kc3sGOwZ7BiIJcGFnZWkGOg9zZXNzaW9uX2lkIiUxOWM4YjVhMzY4ZmZkODdjYjE1ZjliODBmYzViZTM1ZCIYYXM6YWRtaW4vZmVlZF9wb3N0c3sGOwZ7BiIJcGFnZWkGIgpmbGFzaElDOidBY3Rpb25Db250cm9sbGVyOjpGbGFzaDo6Rmxhc2hIYXNoewAGOgpAdXNlZHsAIhdwZXJzb25fY3JlZGVudGlhbHMiAYBjYTcxYzI4ZThjZDBiZjVlZTI5YTc5OTJlOWRkZjk0NGExYjYwZGU5YjI5MjYwMWZkODI2NjQ1NGUyMzkxYzZiZDJmYTQwYWMwMTE2YWMyNjY4NDhiYjVjZTBlYmViOWJmMDYwY2M0NDhkNzM5MzcxNGU3ZWMwN2Q2MzNlZDI3NSIXYXM6YWRtaW4vZXhjaGFuZ2VzewY7BnsGIglwYWdlaQY=--d1a42c5d19d9cfa56100df01cebce3b38eca0cd6person_credentialsca71c28e8cd0bf5ee29a7992e9ddf944a1b60de9b292601fd8266454e2391c6bd2fa40ac0116ac266848bb5ce0ebeb9bf060cc448d7393714e7ec07d633ed275::1
* rack.request.cookie_string : person_credentials=ca71c28e8cd0bf5ee29a7992e9ddf944a1b60de9b292601fd8266454e2391c6bd2fa40ac0116ac266848bb5ce0ebeb9bf060cc448d7393714e7ec07d633ed275%3A%3A1; _oscurrency_session=BAh7DzoQX2NzcmZfdG9rZW4iMTJYWWtFbWNqdkdSUUgrcjlmNnZ1Sm9MUnh1QjBpUTRIYkFNSE16VFhXUUU9IhpwZXJzb25fY3JlZGVudGlhbHNfaWRpBiIUYXM6YWRtaW4vcGVvcGxlewY6CWxpc3R7ACIYYXM6YWRtaW4vY2F0ZWdvcmllc3sGOwZ7ACIbYXM6YWRtaW4vbmVpZ2hib3Job29kc3sGOwZ7BiIJcGFnZWkGOg9zZXNzaW9uX2lkIiUxOWM4YjVhMzY4ZmZkODdjYjE1ZjliODBmYzViZTM1ZCIYYXM6YWRtaW4vZmVlZF9wb3N0c3sGOwZ7BiIJcGFnZWkGIgpmbGFzaElDOidBY3Rpb25Db250cm9sbGVyOjpGbGFzaDo6Rmxhc2hIYXNoewAGOgpAdXNlZHsAIhdwZXJzb25fY3JlZGVudGlhbHMiAYBjYTcxYzI4ZThjZDBiZjVlZTI5YTc5OTJlOWRkZjk0NGExYjYwZGU5YjI5MjYwMWZkODI2NjQ1NGUyMzkxYzZiZDJmYTQwYWMwMTE2YWMyNjY4NDhiYjVjZTBlYmViOWJmMDYwY2M0NDhkNzM5MzcxNGU3ZWMwN2Q2MzNlZDI3NSIXYXM6YWRtaW4vZXhjaGFuZ2VzewY7BnsGIglwYWdlaQY%3D--d1a42c5d19d9cfa56100df01cebce3b38eca0cd6
* rack.request.form_hash : commitCreateauthenticity_token2XYkEmcjvGRQH+r9f6vuJoLRxuB0iQ4HbAMHMzTXWQE=_recordnameVasilipassword_confirmation1234phone1234password1234emailvasili.revelas@gmail.com
* rack.request.form_input : #
* rack.request.form_vars : authenticity_token=2XYkEmcjvGRQH%2Br9f6vuJoLRxuB0iQ4HbAMHMzTXWQE%3D&record%5Bname%5D=Vasili&record%5Bemail%5D=vasili.revelas%40gmail.com&record%5Bphone%5D=1234&record%5Bpassword%5D=1234&record%5Bpassword_confirmation%5D=1234&commit=Create&_=
* rack.request.query_hash :
* rack.request.query_string :
* rack.run_once : false
* rack.session : _csrf_token2XYkEmcjvGRQH+r9f6vuJoLRxuB0iQ4HbAMHMzTXWQE=person_credentials_id1as:admin/peoplelistas:admin/categorieslistas:admin/neighborhoodslistpage1session_id19c8b5a368ffd87cb15f9b80fc5be35das:admin/feed_postslistpage1flashperson_credentialsca71c28e8cd0bf5ee29a7992e9ddf944a1b60de9b292601fd8266454e2391c6bd2fa40ac0116ac266848bb5ce0ebeb9bf060cc448d7393714e7ec07d633ed275as:admin/exchangeslistpage1
* rack.session.options : httponlytruedomainpath/key_session_idid19c8b5a368ffd87cb15f9b80fc5be35dexpire_after
* rack.url_scheme : http
* rack.version : 10

* Process: 1
* Server : f1869536-00cf-4f6d-a2ee-ed48fc086d21

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

[RAILS_ROOT]/vendor/plugins/active_scaffold/lib/active_scaffold/attribute_params.rb:79:in `update_record_from_params'
[RAILS_ROOT]/vendor/plugins/active_scaffold/lib/active_scaffold/attribute_params.rb:75:in `each'
[RAILS_ROOT]/vendor/plugins/active_scaffold/lib/active_scaffold/attribute_params.rb:75:in `update_record_from_params'
[RAILS_ROOT]/vendor/plugins/active_scaffold/lib/active_scaffold/actions/create.rb:105:in `do_create'
[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]/vendor/plugins/active_scaffold/lib/active_scaffold/actions/create.rb:104:in `do_create'
[RAILS_ROOT]/vendor/plugins/active_scaffold/lib/active_scaffold/actions/create.rb:17: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
```