On 11/12/06, <b class="gmail_sendername"><a href="mailto:zvavox@gmail.com">zvavox@gmail.com</a></b> <<a href="mailto:zvavox@gmail.com">zvavox@gmail.com</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br> I have been trying to make MasterView works on my Rails<br>project. However, every time I issue a script/generate masterview<br>Product Store command, I always get the following:<br><br>---<br>D:\aaa>ruby script/generate masterview Product Store
<br>Initializing MasterView configuration (2006-11-12 21:10)<br>Program name = script/generate<br> dependency model<br> exists app/models/<br> exists test/unit/<br> exists test/fixtures/<br> identical app/models/product.rb
<br> identical test/unit/product_test.rb<br> identical test/fixtures/products.yml<br> exists app/controllers/<br> exists app/helpers/<br> create app/views/store<br> exists public/stylesheets/masterview
<br> exists app/masterview<br> exists app/masterview/extra<br> exists test/functional/<br> create app/controllers/store_controller.rb<br> create test/functional/store_controller_test.rb<br> create app/helpers/store_helper.rb
<br> create store/destroy.html<br>wrong number of arguments (1 for 2)<br><br>D:\aaa>rails -v<br>Rails 1.1.6<br><br>D:\aaa>ruby -v<br>ruby 1.8.5 (2006-08-25) [i386-mswin32]<br><br></blockquote></div><br><br>Zandro,
<br><br>I believe I found the problem you were having. I upgraded my ruby version to 1.8.5 and received a similar error [wrong number of arguments (1 for 2)]. It appears that in 1.8.5 they updated the implemenation of Pathname.dirname
which was causing an issue.<br><br>I was able to make a change that should safely resolve the problem. The changes are in the trunk now and we will be pushing out a new release gem and plugin very soon.<br><br>Thanks again for brining this to our attention.
<br><br>Jeff<br><br><br>