# Problem in inserting data to new column

**URL:** <https://www.ruby-forum.com/t/problem-in-inserting-data-to-new-column/137184>\
**Category:** Rails\
**Created:** [May 9, 2008, 7:02pm UTC](https://www.ruby-forum.com/t/problem-in-inserting-data-to-new-column/137184 "2008-05-09T19:02:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![prionko](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/5f9b8f/32.png) [@prionko](https://www.ruby-forum.com/u/prionko)\
**Post date:** [May 9, 2008, 7:02pm UTC](https://www.ruby-forum.com/t/problem-in-inserting-data-to-new-column/137184/1 "2008-05-09T19:02:12Z")

</div>

Hi,  
Im facing a strange problem. I have a user table with some fields out  
there. Rite now I want to add new columns in the database, I did it with  
script/generation migration AddUserField

All things are working fine. I then did rake db:migrate and checked out  
that new columns are added in the database table.But when I want to  
insert data in the newly created tables, the values are not getting  
passed. Can anybody give some idea why is it happening ?  
I checked out in my controller class whether the datas for the new  
columns are getting passed to the controller with puts. But the outputs  
are nil for the new columns.

-Saurav

---

<div class="post-metadata">

**Author:** ![prionko](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/5f9b8f/32.png) [@prionko](https://www.ruby-forum.com/u/prionko)\
**Post date:** [May 9, 2008, 10:54pm UTC](https://www.ruby-forum.com/t/problem-in-inserting-data-to-new-column/137184/2 "2008-05-09T22:54:46Z")

</div>

It’s hard to say off hand without seeing the code - maybe you could  
post your view and controller code on Pastie and give us links? It  
sounds like the data is not making it from the view to the controller.

On May 9, 11:02 am, Saurav C. \<rails-mailing-l…@andreas-
