On 4/20/07, <b class="gmail_sendername">Federico Ramallo</b> <<a href="mailto:framallo@gmail.com">framallo@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;">
hi<br><br>I'm trying to use both plugins, but have some errors...<br><br><a href="http://goldberg.240gl.org/">http://goldberg.240gl.org/</a> <<a href="http://masterview.org/index.html">http://masterview.org/index.html
</a>><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="layouts/clients.rhtml"<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="layouts/application.rhtml"<br><br>here i have this error in <a href="http://localhost:3000/">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">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>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 = 'app/masterview' # relative path from config.root_path<br>config.generate_rhtml_files = true # compile directly to Rails view cache<br><br>Then when you 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>I will keep you posted of my progress.<br><br>Blessings,<br><br>Jeff<br><br><br>