I have been trying to make MasterView works on my Rails
project. However, every time I issue a script/generate masterview
Product Store command, I always get the following:
D:\aaa>ruby script/generate masterview Product Store
Initializing MasterView configuration (2006-11-12 21:10)
Program name = script/generate
dependency model
exists app/models/
exists test/unit/
exists test/fixtures/
identical app/models/product.rb
identical test/unit/product_test.rb
identical test/fixtures/products.yml
exists app/controllers/
exists app/helpers/
create app/views/store
exists public/stylesheets/masterview
exists app/masterview
exists app/masterview/extra
exists test/functional/
create app/controllers/store_controller.rb
create test/functional/store_controller_test.rb
create app/helpers/store_helper.rb
create store/destroy.html
wrong number of arguments (1 for 2)
Note that scaffolding works.
D:\aaa>ruby script/generate scaffold Product Store
I have the following masterview and rails version
D:\aaa>gem list masterview
*** LOCAL GEMS ***
masterview (0.3.0)
A (x)html friendly template engine for rails with the power of
layouts, and partials.
masterview_gem_pack (0.3.0)
A (x)html friendly template engine for rails with the power of
layouts, and partials. This gem package includes the other
masterview gems for easy installation
masterview_generator (0.3.0)
A (x)html friendly template engine for rails with the power of
layouts, and partials. MasterView Generator for creating templates
and scaffolding.
masterview_plugin_generator (0.3.0)
A (x)html friendly template engine for rails with the power of
layouts, and partials. MasterView Plugin Generator for GEM
D:\aaa>rails -v
Rails 1.1.6
D:\aaa>ruby -v
ruby 1.8.5 (2006-08-25) [i386-mswin32]
Am I using the wrong version of Rails, Ruby, or Masterview?
Or a wrong configuration? Please note that I did not make any changes
to the MasterView configuration file.
Thanks.
Zandro