# Script/generate masterview fails

**URL:** <https://www.ruby-forum.com/t/script-generate-masterview-fails/75701>\
**Category:** Rails\
**Created:** [November 12, 2006, 3:05pm UTC](https://www.ruby-forum.com/t/script-generate-masterview-fails/75701 "2006-11-12T15:05:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [November 12, 2006, 3:05pm UTC](https://www.ruby-forum.com/t/script-generate-masterview-fails/75701/1 "2006-11-12T15:05:54Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [November 13, 2006, 4:37am UTC](https://www.ruby-forum.com/t/script-generate-masterview-fails/75701/2 "2006-11-13T04:37:54Z")

</div>

On 11/12/06, removed\_email\_address@domain.invalid [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> dependency model  
> exists app/masterview  
> D:\aaa\>ruby script/generate scaffold Product Store
> 
> masterview\_plugin\_generator (0.3.0)  
> Or a wrong configuration? Please note that I did not make any changes  
> to the MasterView configuration file.  
> Thanks.
> 
> Zandro

Zandro,

It sounds like you are doing everything correctly. It is not obvious to  
me  
from the output what could be causing the problem. It must be something  
different in your environment but I don’t know what yet.

Sounds like we need to get the stack trace for the error in the generate  
to  
be able to figure out what is causing the problem (by default generator  
must  
be catching the exception and hiding the output). I’ll need to take a  
look  
at the rails generator code and see how we can get at the stack trace.

I’m out of town with limited net access, but I am forwarding this on to  
the  
MasterView developer list as well so that it will be logged. We need to  
find  
out exactly what is failing in your environment and then it will  
probably  
pretty easy to resolve. I’ll take a look at the rails generator code  
here on  
my laptop and if I can come up with an easy way to get a stack trace  
I’ll  
respond back. If I can figure something out from here, I will respond  
back,  
otherwise worse case I’ll be back home Tuesday evening.

Sorry for your troubles. We should be able to resolve quickly once we  
can  
get to the root of the problem. Thanks for emailing.

We’ll continue this discussion and resolution off of the main rails list  
to  
save bandwidth, we can use the removed\_email\_address@domain.invalid list. If  
the  
fix requires an update we will release one as soon as we can get to the  
bottom of it.

Thanks for bringing this to our attention. We will stay on it until it  
is  
resolved.

Blessings,

Jeff

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [November 20, 2006, 4:54pm UTC](https://www.ruby-forum.com/t/script-generate-masterview-fails/75701/3 "2006-11-20T16:54:54Z")

</div>

Hi,

having the same error. My specs:

- Win XP SP2
- using the plugin version

even when I try to generate scaffold only for a model, the message is  
the same.  
Hope, this helps a little.

Cheers,  
Roman

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [November 20, 2006, 6:05pm UTC](https://www.ruby-forum.com/t/script-generate-masterview-fails/75701/4 "2006-11-20T18:05:16Z")

</div>

On 11/20/06, Roman H. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> the same.
> 
> > > ```
> > > exists test/unit/
> > > 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)

Roman,

We were able to reproduce this error by upgrading to ruby 1.8.5. It  
seems  
that there was a code change to Pathname caused us an issue since we  
have a  
few objects which derive from it.

As I write this I am making a new release of MasterView 0.3.1 which  
resolved  
the problem.

The code has been released and should be available for gem download  
anytime  
now.

Let me know if this doesn’t resolve the issue for you.

Thanks,

Jeff
