i have installed
ruby 1.8.6 window version,
rails 2.0.2
everything runs fine except SCAFFOLD
when i run
ruby script/generate scaffold modelname controllername actions
e,g. C:depot>ruby script/generate scaffold Album albums
it gives following error
“WRONG NUMBER OF ARGUMENTS (1 FOR 2)”
i tried with many dummyprojects and tutorial,
BUT if i run
ruby script/generate scaffold modelname
e.g ruby script/generate scaffold Album
IT’S RUN FINE
SEE THE FOLLOWING
C:\InstantRails-2.0-win_2\rails_apps\music_library_development>ruby
script/generate scaffold Album albums
exists app/models/
exists app/controllers/
exists app/helpers/
create app/views/products
exists app/views/layouts/
exists test/functional/
exists test/unit/
create app/views/products/index.html.erb
wrong number of arguments (1 for 2)
C:\InstantRails-2.0-win_2\rails_apps\music_library_development>ruby
script/generate scaffold Album
exists app/models/
exists app/controllers/
exists app/helpers/
exists app/views/albums
exists app/views/layouts/
exists test/functional/
exists test/unit/
create app/views/products/index.html.erb
create app/views/products/show.html.erb
create app/views/products/new.html.erb
create app/views/products/edit.html.erb
create app/views/layouts/albums.html.erb
create public/stylesheets/scaffold.css
dependency model
exists app/models/
exists test/unit/
exists test/fixtures/
create app/models/album.rb
create test/unit/album_test.rb
create test/fixtures/albums.yml
create db/migrate
create db/migrate/20080628070012_create_albums.rb
create app/controllers/albums_controller.rb
create test/functional/albums_controller_test.rb
create app/helpers/albums_helper.rb
route map.resources :albums
C:\InstantRails-2.0-win_2\rails_apps\music_library_development>
BUT RESULTS ARE A BIT DIFFERENT ,
i am looking for Modelname “album”, Controllername " albums "
and Actions “show.rhtml, new.rhml, edit.rhtml,_form.rhtml”
BUT RESULTS ARE
Modelname " album" , Controllername " albums",and Actions
“show.html.erb,new.html.erb,edit.html.erb,index.html.erb”
PLZ HELP ME WHAT’S GOING WRONG
Thanks
Pravin M.
[email protected]