# Unable to store data in database

**URL:** <https://www.ruby-forum.com/t/unable-to-store-data-in-database/173580>\
**Category:** Rails\
**Created:** [August 11, 2009, 5:46pm UTC](https://www.ruby-forum.com/t/unable-to-store-data-in-database/173580 "2009-08-11T17:46:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anks](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f07891/32.png) [@anks](https://www.ruby-forum.com/u/anks)\
**Post date:** [August 11, 2009, 5:46pm UTC](https://www.ruby-forum.com/t/unable-to-store-data-in-database/173580/1 "2009-08-11T17:46:33Z")

</div>

hii  
I am developing an application using ror in that i had created a  
feedback form using radiobuttton  
but the entry of the form is not submitted in the database after  
clicking the submit button although the id will b generated  
my migration fyl will look like this

class CreateFeeds \< ActiveRecord::Migration  
def self.up  
create\_table :feeds do |t|  
t.column :name, :string  
t.column :email, :string  
t.column :phone, :integer  
t.column :ovrall\_food\_qu, :string  
t.column :packaging, :string  
t.column :temp, :string  
t.column :freshness, :string  
t.column :item, :string  
t.column :itemdislike, :string  
t.column :descrp, :string  
t.column :td, :string  
t.column :wps, :string  
t.column :shc, :string  
t.column :suggestions, :string  
t.column :messages, :text  
t.timestamps  
end  
end

def self.down  
drop\_table :feeds  
end  
end

---

<div class="post-metadata">

**Author:** ![anks](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f07891/32.png) [@anks](https://www.ruby-forum.com/u/anks)\
**Post date:** [August 11, 2009, 6:21pm UTC](https://www.ruby-forum.com/t/unable-to-store-data-in-database/173580/2 "2009-08-11T18:21:43Z")

</div>

What does the logs say? Is this in development? if you have a look at  
RAILS\_ROOT/log/development.log you will see why the submit does not  
get saved. Do you have validation? how does the create task look in  
your controller?
