From fabiokr at gmail.com Wed Jun 4 10:05:06 2008 From: fabiokr at gmail.com (Fabio Kreusch) Date: Wed, 4 Jun 2008 11:05:06 -0300 Subject: [Masterview-users] Problem with Rails 2.1 Message-ID: <4f081d850806040705l11dd2a4byf5ecb99b6a50b5d4@mail.gmail.com> 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: From jeff.barczewski at gmail.com Wed Jun 4 12:39:30 2008 From: jeff.barczewski at gmail.com (Jeff Barczewski) Date: Wed, 4 Jun 2008 11:39:30 -0500 Subject: [Masterview-users] Problem with Rails 2.1 In-Reply-To: <4f081d850806040705l11dd2a4byf5ecb99b6a50b5d4@mail.gmail.com> References: <4f081d850806040705l11dd2a4byf5ecb99b6a50b5d4@mail.gmail.com> Message-ID: <19cda190806040939pad28ff2u79c682ee2c9b59e0@mail.gmail.com> 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 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: From djlewis at acm.org Wed Jun 4 13:15:26 2008 From: djlewis at acm.org (Deb Lewis) Date: Wed, 4 Jun 2008 10:15:26 -0700 Subject: [Masterview-users] Problem with Rails 2.1 In-Reply-To: <4f081d850806040705l11dd2a4byf5ecb99b6a50b5d4@mail.gmail.com> References: <4f081d850806040705l11dd2a4byf5ecb99b6a50b5d4@mail.gmail.com> Message-ID: <20080604101526288498.b4410a1f@acm.org> 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