hi I''m trying to use both plugins, but have some errors... http://goldberg.240gl.org/ <http://masterview.org/index.html> What i have done so far: * I install both plugins with gem * create a new rails project * run: * ruby script/generate masterview_plugin * script/generate masterview client clients The layout is in app/views/clients/list.html and Masterview generates /layouts/clients.rhtml on startup. then i installed goldberg |*gem install goldberg_generator| * script/generate goldberg template * change security for masterview controller and i want to use the application.rhtml layout from goldberg, so i remove the: mv:generate="layouts/clients.rhtml" now i use layout/application.rhtml for clients controller Until here everything worked fine (ugly, but without errors Smile ) * now i rename application.rhtml to application.html and add in the html tag: mv:generate="layouts/application.rhtml" here i have this error in http://localhost:3000/ Missing layout ./script/../config/../vendor/plugins/goldberg/lib/../app/views/../../../../../app/views/layouts/application.rhtml but i have no error in http://localhost:3000/clients any ideas? i guess that goldberg is looking for the template before masterview generate it..... Thanks in advance
On 4/20/07, Federico Ramallo <framallo at gmail.com> wrote:> > hi > > I''m trying to use both plugins, but have some errors... > > http://goldberg.240gl.org/ <http://masterview.org/index.html> > > What i have done so far: > * I install both plugins with gem > * create a new rails project > * run: > * ruby script/generate masterview_plugin > * script/generate masterview client clients > > The layout is in app/views/clients/list.html and Masterview generates > /layouts/clients.rhtml on startup. > > then i installed goldberg > > |*gem install goldberg_generator| > > * script/generate goldberg template > * change security for masterview controller > > and i want to use the application.rhtml layout from goldberg, so i > remove the: mv:generate="layouts/clients.rhtml" > now i use layout/application.rhtml for clients controller > Until here everything worked fine (ugly, but without errors Smile ) > * now i rename application.rhtml to application.html and add in the html > tag: mv:generate="layouts/application.rhtml" > > here i have this error in http://localhost:3000/ > > Missing layout > > ./script/../config/../vendor/plugins/goldberg/lib/../app/views/../../../../../app/views/layouts/application.rhtml > > > but i have no error in http://localhost:3000/clients > > any ideas? > i guess that goldberg is looking for the template before masterview > generate it..... > >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. 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. I have certainly used layout/application.rhtml across my pages as well so that is a common thing to do. 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. Thanks, Jeff -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/masterview-users/attachments/20070420/cf0d112e/attachment.html
Great! I''m sending the source code. you can create the tables with *rake db:migrate *I could find that if i rename *application.html *to *application.rhtml* it works fine also found in *vendor/plugins/goldberg/lib/goldberg_controller.rb *the *layout *and *template_root methods, *they are used in vendor/plugins/goldberg/app/controllers/goldberg/* si i guess to possible sources: its a path problem or a problem in self.included(base). I vote for the first one, because when i access to *http://localhost:3000/clientes2 *i can see the layout but when i go to anything related to goldberg i have the template error: http://localhost:3000/goldberg/users/list * base.template_root = File.join("#{File.dirname(__FILE__)}/../app/views")* gives me in console *"./script/../config/../config/../vendor/plugins/goldberg/lib/../app/views"* What are the /../ one dir up or allow multiple paths?? (like ; in windows''s path) also found that * base.layout "../../../../../app/views/layouts/application" *is completed with *".rhtml" at the end Thanks Federico Ramallo * Jeff Barczewski wrote:> On 4/20/07, *Federico Ramallo* <framallo at gmail.com > <mailto:framallo at gmail.com>> wrote: > > hi > > I''m trying to use both plugins, but have some errors... > > http://goldberg.240gl.org/ <http://masterview.org/index.html > <http://masterview.org/index.html>> > > What i have done so far: > * I install both plugins with gem > * create a new rails project > * run: > * ruby script/generate masterview_plugin > * script/generate masterview client clients > > The layout is in app/views/clients/list.html and Masterview generates > /layouts/clients.rhtml on startup. > > then i installed goldberg > > |*gem install goldberg_generator| > > * script/generate goldberg template > * change security for masterview controller > > and i want to use the application.rhtml layout from goldberg, so i > remove the: mv:generate="layouts/clients.rhtml" > now i use layout/application.rhtml for clients controller > Until here everything worked fine (ugly, but without errors Smile ) > * now i rename application.rhtml to application.html and add in > the html > tag: mv:generate="layouts/application.rhtml" > > here i have this error in http://localhost:3000/ > <http://localhost:3000/> > > Missing layout > ./script/../config/../vendor/plugins/goldberg/lib/../app/views/../../../../../app/views/layouts/application.rhtml > > > but i have no error in http://localhost:3000/clients > <http://localhost:3000/clients> > > any ideas? > i guess that goldberg is looking for the template before masterview > generate it..... > > > > 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. > > 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. > > I have certainly used layout/application.rhtml across my pages as well > so that is a common thing to do. > > 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. > > Thanks, > > Jeff > ------------------------------------------------------------------------ > > _______________________________________________ > Masterview-users mailing list > Masterview-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/masterview-users-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/masterview-users/attachments/20070421/95c664d7/attachment-0001.html -------------- next part -------------- A non-text attachment was scrubbed... Name: clip_image002.jpg Type: image/jpeg Size: 45669 bytes Desc: not available Url : http://rubyforge.org/pipermail/masterview-users/attachments/20070421/95c664d7/attachment-0001.jpg -------------- next part -------------- A non-text attachment was scrubbed... Name: posmvgoldberg.rar Type: application/octet-stream Size: 268371 bytes Desc: not available Url : http://rubyforge.org/pipermail/masterview-users/attachments/20070421/95c664d7/attachment-0001.obj
i also send you the db... i guess that by granting execute to the controller the action , is this correct? thanks Federico Ramallo Jeff Barczewski wrote:> On 4/20/07, *Federico Ramallo* <framallo at gmail.com > <mailto:framallo at gmail.com>> wrote: > > hi > > I''m trying to use both plugins, but have some errors... > > http://goldberg.240gl.org/ <http://masterview.org/index.html > <http://masterview.org/index.html>> > > What i have done so far: > * I install both plugins with gem > * create a new rails project > * run: > * ruby script/generate masterview_plugin > * script/generate masterview client clients > > The layout is in app/views/clients/list.html and Masterview generates > /layouts/clients.rhtml on startup. > > then i installed goldberg > > |*gem install goldberg_generator| > > * script/generate goldberg template > * change security for masterview controller > > and i want to use the application.rhtml layout from goldberg, so i > remove the: mv:generate="layouts/clients.rhtml" > now i use layout/application.rhtml for clients controller > Until here everything worked fine (ugly, but without errors Smile ) > * now i rename application.rhtml to application.html and add in > the html > tag: mv:generate="layouts/application.rhtml" > > here i have this error in http://localhost:3000/ > <http://localhost:3000/> > > Missing layout > ./script/../config/../vendor/plugins/goldberg/lib/../app/views/../../../../../app/views/layouts/application.rhtml > > > but i have no error in http://localhost:3000/clients > <http://localhost:3000/clients> > > any ideas? > i guess that goldberg is looking for the template before masterview > generate it..... > > > > 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. > > 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. > > I have certainly used layout/application.rhtml across my pages as well > so that is a common thing to do. > > 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. > > Thanks, > > Jeff > ------------------------------------------------------------------------ > > _______________________________________________ > Masterview-users mailing list > Masterview-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/masterview-users-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/masterview-users/attachments/20070421/b94dc524/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: db.sql.gz Type: application/gzip Size: 7672 bytes Desc: not available Url : http://rubyforge.org/pipermail/masterview-users/attachments/20070421/b94dc524/attachment.bin
On 4/20/07, Federico Ramallo <framallo at gmail.com> wrote:> > hi > > I''m trying to use both plugins, but have some errors... > > http://goldberg.240gl.org/ <http://masterview.org/index.html> > > What i have done so far: > * I install both plugins with gem > * create a new rails project > * run: > * ruby script/generate masterview_plugin > * script/generate masterview client clients > > The layout is in app/views/clients/list.html and Masterview generates > /layouts/clients.rhtml on startup. > > then i installed goldberg > > |*gem install goldberg_generator| > > * script/generate goldberg template > * change security for masterview controller > > and i want to use the application.rhtml layout from goldberg, so i > remove the: mv:generate="layouts/clients.rhtml" > now i use layout/application.rhtml for clients controller > Until here everything worked fine (ugly, but without errors Smile ) > * now i rename application.rhtml to application.html and add in the html > tag: mv:generate="layouts/application.rhtml" > > here i have this error in http://localhost:3000/ > > Missing layout > > ./script/../config/../vendor/plugins/goldberg/lib/../app/views/../../../../../app/views/layouts/application.rhtml > > > but i have no error in http://localhost:3000/clients > > any ideas? > i guess that goldberg is looking for the template before masterview > generate it..... > >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. I am continuing to look into it and will look at the methods that you mentioned in your last email. 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... 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 config.template_src_dir_path = ''app/masterview'' # relative path from config.root_path config.generate_rhtml_files = true # compile directly to Rails view cache 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. I will keep you posted of my progress. Blessings, Jeff -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/masterview-users/attachments/20070422/69cfe371/attachment.html
On 4/22/07, Jeff Barczewski <jeff.barczewski at gmail.com> wrote:> > On 4/20/07, Federico Ramallo <framallo at gmail.com> wrote: > > > > hi > > > > I''m trying to use both plugins, but have some errors... > > > > http://goldberg.240gl.org/ <http://masterview.org/index.html > > > > > What i have done so far: > > * I install both plugins with gem > > * create a new rails project > > * run: > > * ruby script/generate masterview_plugin > > * script/generate masterview client clients > > > > The layout is in app/views/clients/list.html and Masterview generates > > /layouts/clients.rhtml on startup. > > > > then i installed goldberg > > > > |*gem install goldberg_generator| > > > > * script/generate goldberg template > > * change security for masterview controller > > > > and i want to use the application.rhtml layout from goldberg, so i > > remove the: mv:generate="layouts/clients.rhtml" > > now i use layout/application.rhtml for clients controller > > Until here everything worked fine (ugly, but without errors Smile ) > > * now i rename application.rhtml to application.html and add in the html > > tag: mv:generate="layouts/application.rhtml" > > > > here i have this error in http://localhost:3000/ > > > > Missing layout > > > > ./script/../config/../vendor/plugins/goldberg/lib/../app/views/../../../../../app/views/layouts/application.rhtml > > > > > > but i have no error in http://localhost:3000/clients > > > > any ideas? > > i guess that goldberg is looking for the template before masterview > > generate it..... > > > > > > 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. > > I am continuing to look into it and will look at the methods that you > mentioned in your last email. > > 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... > > 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 > > config.template_src_dir_path = ''app/masterview'' # relative path from > config.root_path > config.generate_rhtml_files = true # compile directly to Rails view cache > > 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. > >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. I have created a solution to this that now takes the base_path into account and will work properly now if Goldberg, other plugins, or controllers change this value from the default. 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. 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). Blessings, Jeff ** -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/masterview-users/attachments/20070423/99bbb7b6/attachment.html