<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
Great! <br>
I'm sending the source code.<br>
you can create the tables with <b>rake db:migrate <br>
</b>I could find that if i rename <b>application.html </b>to <b>application.rhtml</b>
it works fine<br>
<span style="font-size: 12pt; font-family: "Times New Roman";"><!--[if gte vml 1]><v:shapetype id="_x0000_t75"
coordsize="21600,21600" o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe"
filled="f" stroked="f">
<v:stroke joinstyle="miter"/>
<v:formulas>
<v:f eqn="if lineDrawn pixelLineWidth 0"/>
<v:f eqn="sum @0 1 0"/>
<v:f eqn="sum 0 0 @1"/>
<v:f eqn="prod @2 1 2"/>
<v:f eqn="prod @3 21600 pixelWidth"/>
<v:f eqn="prod @3 21600 pixelHeight"/>
<v:f eqn="sum @0 0 1"/>
<v:f eqn="prod @6 1 2"/>
<v:f eqn="prod @7 21600 pixelWidth"/>
<v:f eqn="sum @8 21600 0"/>
<v:f eqn="prod @7 21600 pixelHeight"/>
<v:f eqn="sum @10 21600 0"/>
</v:formulas>
<v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"/>
<o:lock v:ext="edit" aspectratio="t"/>
</v:shapetype><v:shape id="_x0000_i1025" type="#_x0000_t75" style='width:424.5pt;
height:307.5pt'>
<v:imagedata src="file:///C:\DOCUME~1\framallo\CONFIG~1\Temp\msohtml1\01\clip_image00
1.png"
o:title=""/>
</v:shape><![endif]--><!--[if !vml]-->
<!--[endif]--></span>also found in <b>vendor/plugins/goldberg/lib/goldberg_controller.rb
</b>the <b>layout </b>and <b>template_root methods, </b>they are
used in vendor/plugins/goldberg/app/controllers/goldberg/*<br>
si i guess to possible sources: its a path problem or a problem in
self.included(base).<br>
I vote for the first one, because when i access to <b><a class="moz-txt-link-freetext" href="http://localhost:3000/clientes2">http://localhost:3000/clientes2</a>
</b>i can see the layout but when i go to anything related to goldberg
i have the template error: <a
href="http://localhost:3000/goldberg/users/list">http://localhost:3000/goldberg/users/list</a><br>
<b><br>
base.template_root =
File.join("#{File.dirname(__FILE__)}/../app/views")</b><br>
gives me in console <b>"./script/../config/../config/../vendor/plugins/goldberg/lib/../app/views"</b><br>
What are the /../ one dir up or allow multiple paths?? (like ; in
windows's path)<br>
<br>
also found that <br>
<b> base.layout "../../../../../app/views/layouts/application"<br>
</b>is completed with <b>".rhtml" at the end<br>
<br>
Thanks<br>
Federico Ramallo<br>
</b><br>
Jeff Barczewski wrote:
<blockquote
cite="mid19cda190704201441k69442801y557d3dd15bd87f45@mail.gmail.com"
type="cite">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>
I am not aware of any incompatibilities between the two plugins. The
way that MasterView hooks into rails, I doubt that there would be a
problem in that goldberg is not able to find the template. I'm guessing
that maybe it is just a slight typo or something somewhere in the
setup.
<br>
<br>
Could you browse to the masterview admin page and paste a screenshot
for me here, that might help in determining what is wrong. And if you
don't have anything too private in there yet, you could even zip up the
files and post them as well and I can take a look directly if the
screenshot doesn't tell us enough.
<br>
<br>
I have certainly used layout/application.rhtml across my pages as well
so that is a common thing to do. <br>
<br>
If there turns out to be any incompatibility then I'll do my best to
resolve it, but lets start the debugging and see where it leads us.
<br>
<br>
Thanks,<br>
<br>
Jeff<br>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
Masterview-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Masterview-users@rubyforge.org">Masterview-users@rubyforge.org</a>
<a class="moz-txt-link-freetext" href="http://rubyforge.org/mailman/listinfo/masterview-users">http://rubyforge.org/mailman/listinfo/masterview-users</a></pre>
</blockquote>
</body>
</html>