Can''t seem to get either .rhtml files out or erb directly into the rails view cache. Tried in my own rails app where I''ve got a few pages for testing this, also on a clean install (from newly built gem, whoo hoo) into a new empty rails app. nada. I''m going to add a config info page to the masterview admin controller in the morning; that might help track things down and will be useful in any case. ~ Deb
Nothing? I''ll try testing on windows too to see if I can find any issues. I also want to gracefully handle the situation where one doesn''t have write permission to the file system, need to test that. I will do some installs on windows and see if anything breaks. Jeff On 6/18/06, Deb Lewis <djlewis at acm.org> wrote:> > Can''t seem to get either .rhtml files out or erb directly into the rails > view cache. > > Tried in my own rails app where I''ve got a few pages for testing this, > also > on a clean install (from newly built gem, whoo hoo) into a new empty rails > app. nada. > > I''m going to add a config info page to the masterview admin controller in > the morning; that might help track things down and will be useful in any > case. > > ~ Deb > > > _______________________________________________ > Masterview-devel mailing list > Masterview-devel at rubyforge.org > http://rubyforge.org/mailman/listinfo/masterview-devel >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/masterview-devel/attachments/20060618/8e0df71b/attachment.htm
I fixed an issue today where updates weren''t being seen because the resolution of Time is a second, so I put in a sleep in the tests to insure a second would pass between updates. I also updated config_settings_test to use default path of app/views All tests work for me on *nix and win32. I also manually ran mv as gem and plugin in both environments and appears to be working from what I tested. I tested with generate_rhtml on and off. I am running rails 1.1.2, I haven''t tried it on older versions in a while. Specifically the direct to erb might not work on older versions, so if it doesn''t then set generate_rhtml_files to true and it should work fine. Will test on those versions first chance I get. Let me know the details of your issues, it sounds like nothing is generating for you, or it isn''t picking up updates?? And you have all the latest changes. correct? I''m hoping that it is something out of sync, because I am running out of ideas unless it maybe it is an older version of rails or something, but they also worked (using rhtml) when I tested a while back. I am going to do some stuff for fathers day, but let me know any details of your issues and I''ll take a look by tomorrow morning. Jeff On 6/18/06, Jeff Barczewski <jeff.barczewski at gmail.com> wrote:> > Nothing? I''ll try testing on windows too to see if I can find any issues. > I also want to gracefully handle the situation where one doesn''t have write > permission to the file system, need to test that. > > I will do some installs on windows and see if anything breaks. > > Jeff > > > On 6/18/06, Deb Lewis <djlewis at acm.org> wrote: > > > > Can''t seem to get either .rhtml files out or erb directly into the rails > > view cache. > > > > Tried in my own rails app where I''ve got a few pages for testing this, > > also > > on a clean install (from newly built gem, whoo hoo) into a new empty > > rails > > app. nada. > > > > I''m going to add a config info page to the masterview admin controller > > in > > the morning; that might help track things down and will be useful in any > > case. > > > > ~ Deb > > > > > > _______________________________________________ > > Masterview-devel mailing list > > Masterview-devel at rubyforge.org > > http://rubyforge.org/mailman/listinfo/masterview-devel > > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/masterview-devel/attachments/20060618/bd550605/attachment.htm
I''m running rails 1.1.2, ruby 1.8.4, and fully synched with trunk. There''s something profoundly screwy going on with my files and timestamps that only seems to have started w/in the past few days. I have finally gotten things running again, kinda: mv installed in a clean empty rails app, files not under version control; also in my own rails app checked out from svn if I do certain hand-fiddling to ensure template file timestamps are getting updated. Tried both file generation and direct-to-rails-cache - cool!!! There''s something I don''t understand about what''s happening with SVN checkouts and files/timestamps. Dunno if it''s SVN, my client config settings, Tortoise SVN, subclipse, or all of these in some fashion. I''m editing files in eclipse or with my usual html editing tools and despite the fact that edits are made and saved the file timestamps aren''t getting updated. I am... baffled. A thought: timestamps can in general be kind of flakey, esp. when doing things like FTP xfr''s between machines (?and version control checkouts?). And you really don''t wanna hear me whine about daylight savings changes on windows... Maybe shouldn''t be the sole criteria for template change detection. How about adding a size-changed condition as well? ~ Deb _____ From: Jeff Barczewski [mailto:jeff.barczewski at gmail.com] Sent: Sunday, June 18, 2006 9:24 AM To: djlewis at acm.org; masterview-devel at rubyforge.org Subject: Re: [Masterview-devel] No joy in generating today I fixed an issue today where updates weren''t being seen because the resolution of Time is a second, so I put in a sleep in the tests to insure a second would pass between updates. I also updated config_settings_test to use default path of app/views All tests work for me on *nix and win32. I also manually ran mv as gem and plugin in both environments and appears to be working from what I tested. I tested with generate_rhtml on and off. I am running rails 1.1.2, I haven''t tried it on older versions in a while. Specifically the direct to erb might not work on older versions, so if it doesn''t then set generate_rhtml_files to true and it should work fine. Will test on those versions first chance I get. Let me know the details of your issues, it sounds like nothing is generating for you, or it isn''t picking up updates?? And you have all the latest changes. correct? I''m hoping that it is something out of sync, because I am running out of ideas unless it maybe it is an older version of rails or something, but they also worked (using rhtml) when I tested a while back. I am going to do some stuff for fathers day, but let me know any details of your issues and I''ll take a look by tomorrow morning. Jeff -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/masterview-devel/attachments/20060618/dfb07373/attachment.htm
Well what we are doing currently is if the mtime is not exactly what it was before then assume it is changed. I don''t bother doing greater than checking just if it is different. Rails currently just checks if the file is > than the last compile time (which like you said can get messed up). I think doing exact mtime checking gets around most issues. If we need to we can eventually add size too, but I just went for simple (and that was what rails was doing too). On 6/18/06, Deb Lewis <djlewis at acm.org> wrote:> > > A thought: timestamps can in general be kind of flakey, esp. when doing > things like FTP xfr''s between machines (?and version control checkouts?). > And you really don''t wanna hear me whine about daylight savings changes on > windows... Maybe shouldn''t be the sole criteria for template change > detection. How about adding a size-changed condition as well? > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/masterview-devel/attachments/20060618/72f7b814/attachment.htm