# Development.log

**URL:** <https://www.ruby-forum.com/t/development-log/114509>\
**Category:** Rails\
**Created:** [September 13, 2007, 3:28pm UTC](https://www.ruby-forum.com/t/development-log/114509 "2007-09-13T15:28:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![S.Tony](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/dc4da7/32.png) [@S.Tony](https://www.ruby-forum.com/u/S.Tony)\
**Post date:** [September 13, 2007, 3:28pm UTC](https://www.ruby-forum.com/t/development-log/114509/1 "2007-09-13T15:28:55Z")

</div>

I am using activescaffold with form override

I find the the select tag value cannot be insert into table

Processing CustomerController#create (for 127.0.0.1 at 2007-09-13  
21:22:43) [POST]  
Session ID: 1358d30acc2435d9fa2d0242127e0266  
Parameters: {“commit”=\>“Create”, “billing\_address\_id”=\>“1”,  
“action”=\>“create”, “controller”=\>“customer”, “record”=\>{“name”=\>“n”,  
“shipping\_address\_id”=\>“1”}}

BEGIN  
INSERT INTO customers (`name`, `shipping_address_id`,  
`billing_address_id`) VALUES(‘n’, NULL, NULL) [0m  
COMMIT

In the parameters line, you could see billing\_address\_id and  
record.shipping\_address\_id

but none of them appear in the insert statement.

I want to write a before\_save method to fix this.

I tried  
seld.billing\_address\_id = billing\_address\_id  
self.shipping\_address\_id = params[record][shipping\_address\_id]

but none works.

How should I do this?
