Lea Viljanen
2007-Feb-16 17:46 UTC
[Masterview-users] How come app/views/<controllername> is empty?
Apart from the webrick problem documented previously, I had a puzzling problem: views/controller directory would stay empty after doing "script/generate model controller". Script would say everything is OK, but I would get a "Missing template script/../config/../app/views/foo/list.rhtml" error in the browser on trying to get to the controller. The problem is that I don''t know what fixed this. When I got the webrick problem sorted out, the generator suddenly started working as well. But as the problems probably weren''t related, I''d like to know if anybody else has seen this? What was the solution? BTW, Masterview would need better support for merging it with existing plain Rails projects. I don''t think I''m the only one realizing halfway into coding that something like Masterviews would be needed. Or at least better documentation how to do it... I''m willing to help, but with about 8 hours of Masterview experience I''m not the ideal candidate.
Jeff Barczewski
2007-Feb-16 17:59 UTC
[Masterview-users] How come app/views/<controllername> is empty?
On 2/16/07, Lea Viljanen <Lea.Viljanen at iki.fi> wrote:> > Apart from the webrick problem documented previously, I had a puzzling > problem: views/controller directory would stay empty after doing > "script/generate model controller". Script would say everything is OK, > but I would get a "Missing template > script/../config/../app/views/foo/list.rhtml" error in the browser > on trying to get to the controller.Hmm. Sounds like there was an exception happening in the generate that was not actually letting the code succeed to create the files. Unfortunately many of these rails commands eat the exception by default so we don''t always see the output, sometimes you can get more output by adding a command line option. The problem is that I don''t know what fixed this. When I got the> webrick problem sorted out, the generator suddenly started working as > well. But as the problems probably weren''t related, I''d like to know > if anybody else has seen this? What was the solution?I''m guessing that somehow you resolved the original exception and things started working again. We''ll try to indicate in our docs how one can get more useful output if you are having problems. BTW, Masterview would need better support for merging it with existing> plain Rails projects. I don''t think I''m the only one realizing halfway > into coding that something like Masterviews would be needed. Or at least > better documentation how to do it... I''m willing to help, but with about > 8 hours of Masterview experience I''m not the ideal candidate.Yes, while you can currently mix and match using MasterView with an existing project, others have also suggested interest in being able to import existing rhtml into the MasterView templates would really help. I agree that this would be a nice feature to have, but I haven''t quite worked through all the technical details to be able to make this happen. It is on our todo list. Jeff -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/masterview-users/attachments/20070216/f6a8f6ca/attachment.html