On 4/22/07, <b class="gmail_sendername">Jeff Barczewski</b> &lt;<a href="mailto:jeff.barczewski@gmail.com">jeff.barczewski@gmail.com</a>&gt; 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;">
<span class="q">On 4/20/07, <b class="gmail_sendername">Federico Ramallo</b> &lt;<a href="mailto:framallo@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">framallo@gmail.com</a>&gt; wrote:
</span><div><span class="e" id="q_112195591529b6d1_1"><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;">

hi<br><br>I&#39;m trying to use both plugins, but have some errors...<br><br><a href="http://goldberg.240gl.org/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://goldberg.240gl.org/</a> &lt;
<a href="http://masterview.org/index.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://masterview.org/index.html
</a>&gt;<br><br>What i have done so far:<br>* I install both plugins with gem<br>* create a new rails project<br>* run:<br>* ruby script/generate masterview_plugin<br>* script/generate masterview client clients<br><br>The layout is in app/views/clients/list.html and Masterview generates
<br>/layouts/clients.rhtml on startup.<br><br>then i installed goldberg<br><br>|*gem install goldberg_generator|<br><br>* script/generate goldberg template<br>* change security for masterview controller<br><br>and i want to use the 
application.rhtml layout from goldberg, so i<br>remove the: mv:generate=&quot;layouts/clients.rhtml&quot;<br>now i use layout/application.rhtml for clients controller<br>Until here everything worked fine (ugly, but without errors Smile )
<br>* now i rename application.rhtml to application.html and add in the html<br>tag: mv:generate=&quot;layouts/application.rhtml&quot;<br><br>here i have this error in <a href="http://localhost:3000/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://localhost:3000/
</a><br><br>Missing layout<br>./script/../config/../vendor/plugins/goldberg/lib/../app/views/../../../../../app/views/layouts/application.rhtml<br><br><br>but i have no error in <a href="http://localhost:3000/clients" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://localhost:3000/clients
</a><br><br>any ideas?<br>i guess that goldberg is looking for the template before masterview<br>generate it.....<br><br></blockquote></div><br><br></span></div>Well you are right, goldberg is changing something in the environment that is having problems locating the 
application.rhtml properly when hitting the root page. <br><br>I am continuing to look into it and will look at the methods that you mentioned in your last email.<br><br>In the meantime, I wanted to share with you some config options that would serve as a work around while I look into this. If we turn on rhtml generation in MasterView then MasterView will generate the rhtml files to the file system and everything will work with goldberg. However as you probably know then you will have a mix of html and rhtml files in your view directories which can be confusing. So if you want to do this here is what will make it cleaner...
<br><br>Move all your directories (containing your MasterView html templates) from app/views into something like app/masterview (just anything besides app/views) and then set the following config settings in config/masterview/settings.rb
<br><br>config.template_src_dir_path = &#39;app/masterview&#39;&nbsp; # relative path from config.root_path<br>config.generate_rhtml_files = true # compile directly to Rails view cache<br><br>Then when you&nbsp; start up MasterView the rhtml files will be generated directly into app/views and Goldberg will be happy. Once I figure out the real fix, then we can delete everything in app/views and move the app/masterview stuff back to app/view and remove the config changes.
<br><br></blockquote></div><br><br><br>Just an update on my progress with this. After digging into this I found that the problem occurs because Goldberg changes the base_path for its views as Federico suggested<span style="font-weight: bold;">
.<span style="font-weight: bold;"><span style="font-weight: bold;"> <br><br></span></span></span>I have created a solution to this that now takes the base_path into account and will work properly now if Goldberg,&nbsp; other plugins, or controllers change this value from the default.
<br><br>I am working up test cases that will exercise all the scenarios and once that is done, I will check into svn. The refactoring is a decent amount of code, so I want to make sure I have good test coverage before uploading.
<br><br>Hopefully the work around I suggested Saturday (using config.template_src_dir_path and config.generate_rhtml_files) will suffice until I can get this checked in (hopefully in the next day or so).<br><br>Blessings,
<br><br>Jeff<br><br><br><b></b><br>