Hello, I''m trying to use Masterview with Rails 2.1. When I try to start the server, I get this error stack: INFO MasterView: Adding hooks to enable Rails to read erb directly from> MasterView > /home/fabio/workspace/Demo/vendor/plugins/masterview/lib/masterview/rails_ext/action_view_erb_direct.rb:23: > undefined method `template_exists?'' for class `ActionView::Base'' (NameError) > from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require'' > from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in > `require'' > from > /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in > `require'' > from > /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:354:in > `new_constants_in'' > from > /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in > `require'' > from > /home/fabio/workspace/Demo/vendor/plugins/masterview/lib/masterview/initializer.rb:1183:in > `enable_rails_erb_direct'' > from > /home/fabio/workspace/Demo/vendor/plugins/masterview/lib/masterview/initializer.rb:1135:in > `install_in_rails'' > from > /home/fabio/workspace/Demo/vendor/plugins/masterview/lib/masterview/initializer.rb:1040:in > `complete_plugin_installation'' > ... 32 levels... > from > /usr/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/commands/server.rb:39 > from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require'' > from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in > `require'' > from script/server:3 >What can that mean? Thanks, Fabio. -- Fabio Kreusch fabiokr at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/masterview-users/attachments/20080604/a9a7c892/attachment.html>
We''re in the process of updating this for Rails 2.1, it seems that they have changed some structure in the view layer. If you enable rhtml to be written then this view hook code will not need to be executed. So add this to your config/masterview/settings.rb config.generate_rhtml_files = true This is normally the setting we use in production too since it will use less memory. By setting it in settings.rb it will be set for both scenarios. Let me know if this allows you to work around the issue until we have that feature compatible with 2.1. Thanks, Jeff On Wed, Jun 4, 2008 at 9:05 AM, Fabio Kreusch <fabiokr at gmail.com> wrote:> Hello, > I''m trying to use Masterview with Rails 2.1. > > When I try to start the server, I get this error stack: > > INFO MasterView: Adding hooks to enable Rails to read erb directly from >> MasterView >> /home/fabio/workspace/Demo/vendor/plugins/masterview/lib/masterview/rails_ext/action_view_erb_direct.rb:23: >> undefined method `template_exists?'' for class `ActionView::Base'' (NameError) >> from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in >> `gem_original_require'' >> from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in >> `require'' >> from >> /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in >> `require'' >> from >> /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:354:in >> `new_constants_in'' >> from >> /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in >> `require'' >> from >> /home/fabio/workspace/Demo/vendor/plugins/masterview/lib/masterview/initializer.rb:1183:in >> `enable_rails_erb_direct'' >> from >> /home/fabio/workspace/Demo/vendor/plugins/masterview/lib/masterview/initializer.rb:1135:in >> `install_in_rails'' >> from >> /home/fabio/workspace/Demo/vendor/plugins/masterview/lib/masterview/initializer.rb:1040:in >> `complete_plugin_installation'' >> ... 32 levels... >> from >> /usr/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/commands/server.rb:39 >> from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in >> `gem_original_require'' >> from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in >> `require'' >> from script/server:3 >> > > What can that mean? > > Thanks, > Fabio. > > -- > Fabio Kreusch > fabiokr at gmail.com > _______________________________________________ > Masterview-users mailing list > Masterview-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/masterview-users >-- Jeff Barczewski, MasterView core team Inspired Horizons Ruby on Rails Training and Consultancy http://inspiredhorizons.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/masterview-users/attachments/20080604/800ca66d/attachment.html>
Our MasterView hooks to compiling directly into the erb view cache in Rails doesn''t work in Rails 2.0 either. There were some changes in the ActiveView framework in 2.0 that affect how we need to hook in the template system, and further changes in this area in the just-released 2.1. I''m working on the rails 2.0 changes for MasterView right now - the basic changes we need to make for hooking into the view framework are understood, but I need to do more testing and tighten up the code before we release this. I''ll do the Rails 2.1 integration as soon as the 2.0 integration fixees are stabilized. Hopefully soon... got "de-railed" from updating MasterView while at RailsConf, so will get back to finishing this over the coming week. ~ Deb
hello jeff, is there a time planning when you''ll release this good stuff for rails 2.1? i hope you will do this. as i see the website is down :( On Wed, Jun 4, 2008 at 19:15, Deb Lewis <djlewis at acm.org> wrote:> Our MasterView hooks to compiling directly into the erb view cache in > Rails doesn''t work in Rails 2.0 either. There were some changes in the > ActiveView framework in 2.0 that affect how we need to hook in the > template system, and further changes in this area in the just-released > 2.1. > > I''m working on the rails 2.0 changes for MasterView right now - the > basic changes we need to make for hooking into the view framework are > understood, but I need to do more testing and tighten up the code > before we release this. I''ll do the Rails 2.1 integration as soon as > the 2.0 integration fixees are stabilized. > > Hopefully soon... got "de-railed" from updating MasterView while at > RailsConf, so will get back to finishing this over the coming week. > > ~ Deb > _______________________________________________ > Masterview-users mailing list > Masterview-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/masterview-users >-- so long, HANS
On Tue, Jul 8, 2008 at 5:45 AM, gauda <info at gauda.de> wrote:> hello jeff, > is there a time planning when you''ll release this good stuff for rails 2.1? > i hope you will do this. as i see the website is down :(Thanks for letting me know about the website, provider must have changed something. I am looking into it now. I''ll let Deb comment on when she thinks the changes might be ready for release. Jeff> > > On Wed, Jun 4, 2008 at 19:15, Deb Lewis <djlewis at acm.org> wrote: > > Our MasterView hooks to compiling directly into the erb view cache in > > Rails doesn''t work in Rails 2.0 either. There were some changes in the > > ActiveView framework in 2.0 that affect how we need to hook in the > > template system, and further changes in this area in the just-released > > 2.1. > > > > I''m working on the rails 2.0 changes for MasterView right now - the > > basic changes we need to make for hooking into the view framework are > > understood, but I need to do more testing and tighten up the code > > before we release this. I''ll do the Rails 2.1 integration as soon as > > the 2.0 integration fixees are stabilized. > > > > Hopefully soon... got "de-railed" from updating MasterView while at > > RailsConf, so will get back to finishing this over the coming week. > > > > ~ Deb > > _______________________________________________ > > Masterview-users mailing list > > Masterview-users at rubyforge.org > > http://rubyforge.org/mailman/listinfo/masterview-users > > > > > > -- > so long, > HANS > _______________________________________________ > 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/20080708/913f17c3/attachment.html>
(masterview.org is back up, thx jeff!) apologies that the 2.x updates of Masterview are slow getting out... I''ve gotten stalled on the 2.0 updates out - the bulk of the rework needed was done weeks ago, but I have to finish testing some of the exception cases before these changes are safe to release. I expect the 2.1 updates to be easier, but we know that there are framework changes in the areas where we have do some rather ugly hooks to get into the rails page rendering cycle, so it probably won''t be just a trivial tweak. For the record, the main masterview template rendering engine itself isn''t affected at all - the tricky area is integrating into the rails rendering framework so MV templates work properly in a rails app. So I haven''t tried it yet, but you could probably get running on 2.1 if you''re willing to use the MV generate_rhtml_files option to pre-compile all your masterview view templates into .rhtml. You lose auto-reload of changes during development, which is sad, but if your views are fairly stable that might be acceptable as a short-term workaround. I''m still hoping to get the 2.0 changes wrapped up this weekend, but I''m under serious deadline pressure through the end of the month with work commitments. So realistically I probably won''t have any time to do the 2.1 update until beginning of August. ~ Deb On Tue, 8 Jul 2008 11:29:47 -0500, Jeff Barczewski wrote:> On Tue, Jul 8, 2008 at 5:45 AM, gauda <info at gauda.de> wrote: > >> hello jeff, >> is there a time planning when you''ll release this good stuff for rails 2.1? >> i hope you will do this. as i see the website is down :( > > Thanks for letting me know about the website, provider must have changed > something. I am looking into it now. > > I''ll let Deb comment on when she thinks the changes might be ready for > release. > > Jeff >