We&#39;re in the process of updating this for Rails 2.1, it seems that they have changed some structure in the view layer.<br><br>If you enable rhtml to be written then this view hook code will not need to be executed. <br>
<br>So add this to your <br>config/masterview/settings.rb<br><br>config.generate_rhtml_files = true<br><br><br>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.<br>
<br>Let me know if this allows you to work around the issue until we have that feature compatible with 2.1.<br><br>Thanks,<br><br>Jeff<br><br><br><br><div class="gmail_quote">On Wed, Jun 4, 2008 at 9:05 AM, Fabio Kreusch &lt;<a href="mailto:fabiokr@gmail.com">fabiokr@gmail.com</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello,<br>I&#39;m trying to use Masterview with Rails 2.1.<br><br>When I try to start the server, I get this error stack:<br>
<br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">
INFO MasterView: Adding hooks to enable Rails to read erb directly from MasterView<br>/home/fabio/workspace/Demo/vendor/plugins/masterview/lib/masterview/rails_ext/action_view_erb_direct.rb:23: undefined method `template_exists?&#39; for class `ActionView::Base&#39; (NameError)<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require&#39;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `require&#39;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in `require&#39;<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:354:in `new_constants_in&#39;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in `require&#39;<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from /home/fabio/workspace/Demo/vendor/plugins/masterview/lib/masterview/initializer.rb:1183:in `enable_rails_erb_direct&#39;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from /home/fabio/workspace/Demo/vendor/plugins/masterview/lib/masterview/initializer.rb:1135:in `install_in_rails&#39;<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from /home/fabio/workspace/Demo/vendor/plugins/masterview/lib/masterview/initializer.rb:1040:in `complete_plugin_installation&#39;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ... 32 levels...<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from /usr/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/commands/server.rb:39<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require&#39;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `require&#39;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from script/server:3<br clear="all">

</blockquote><br>What can that mean?<br><br>Thanks,<br>Fabio.<br><font color="#888888"><br>-- <br>Fabio Kreusch<br><a href="mailto:fabiokr@gmail.com" target="_blank">fabiokr@gmail.com</a>
</font><br>_______________________________________________<br>
Masterview-users mailing list<br>
<a href="mailto:Masterview-users@rubyforge.org">Masterview-users@rubyforge.org</a><br>
<a href="http://rubyforge.org/mailman/listinfo/masterview-users" target="_blank">http://rubyforge.org/mailman/listinfo/masterview-users</a><br></blockquote></div><br><br clear="all"><br>-- <br>Jeff Barczewski, MasterView core team<br>
Inspired Horizons Ruby on Rails Training and Consultancy<br><a href="http://inspiredhorizons.com/">http://inspiredhorizons.com/</a>