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!!!!!!!!!!!!!
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.