# Help me

**URL:** <https://www.ruby-forum.com/t/help-me/192925>\
**Category:** Rails\
**Created:** [August 8, 2010, 4:10pm UTC](https://www.ruby-forum.com/t/help-me/192925 "2010-08-08T16:10:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pravin\_mishra](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/c37758/32.png) [@pravin\_mishra](https://www.ruby-forum.com/u/pravin_mishra)\
**Post date:** [August 8, 2010, 4:10pm UTC](https://www.ruby-forum.com/t/help-me/192925/1 "2010-08-08T16:10:02Z")

</div>

i am creating an aplication where table name albums width attributes

CREATE TABLE albums ( id int(11) NOT NULL auto\_increment,  
title varchar(255) NOT NULL default ‘’,  
artist\_old varchar(255) NOT NULL default ‘’,  
release\_date datetime NOT NULL default ‘0000-00-00 00:00:00’,  
genre varchar(50) NOT NULL default ‘’,  
created\_at datetime NOT NULL default ‘0000-00-00 00:00:00’,  
updated\_at datetime NOT NULL default ‘0000-00-00 00:00:00’,  
image\_path varchar(255) NOT NULL default ‘’,  
artist\_id int(11) NOT NULL default ‘0’,  
PRIMARY KEY (id));

when i am running scaffold then it not generating albums\_controller.rb  
file

C:\InstantRails-2.0-win\_2\rails\_apps\music\_library\>ruby script/generate  
scaffold Album id:int title:varchar artist\_old:varchar  
release\_date:datetime  
genre:varchar created  
\_at:datetime updated\_at:datetime image\_path:varchar artist\_id:int  
exists app/models/  
exists app/controllers/  
exists app/helpers/  
exists app/views/albums  
exists app/views/layouts/  
exists test/functional/  
exists test/unit/  
overwrite app/views/albums/index.html.erb? (enter “h” for help) [Ynaqdh]  
y  
force app/views/albums/index.html.erb  
create app/views/albums/show.html.erb  
create app/views/albums/new.html.erb  
create app/views/albums/edit.html.erb  
identical app/views/layouts/albums.html.erb  
identical public/stylesheets/scaffold.css  
dependency model  
exists app/models/  
exists test/unit/  
exists test/fixtures/  
create app/models/album.rb  
identical test/unit/album\_test.rb  
skip test/fixtures/albums.yml  
exists db/migrate  
Another migration is already named create\_albums:  
db/migrate/001\_create\_albums.rb

it working well for other tables

please help me actually where is problem

thanks in adv!!!

---

<div class="post-metadata">

**Author:** ![pravin\_mishra](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/c37758/32.png) [@pravin\_mishra](https://www.ruby-forum.com/u/pravin_mishra)\
**Post date:** [August 8, 2010, 5:24pm UTC](https://www.ruby-forum.com/t/help-me/192925/2 "2010-08-08T17:24:58Z")

</div>

It would be better if you used Ryan B. nifty generators instead of  
just scaffold, just google for them and also visit [railscasts.com](http://railscasts.com)
