<div><span class="gmail_quote">On 18/10/06, <b class="gmail_sendername">Michael Lee</b> &lt;<a href="mailto:yfl@bund.com.au">yfl@bund.com.au</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi all<br><br>I am new to Mocha. I am trying to use it for my pet rails project.<br><br>I seem to be getting loads of errors when I add mocha as a plugin. It<br>seems to be conflicting with TinyMCE plugin <a href="http://johnwulff.com/">
http://johnwulff.com/</a><br>articles/2006/05/31/tinymce-with-ruby-on-rails<br><br>I am getting the following errors<br><br>ActionView::TemplateError: undefined method `using_tiny_mce?' for<br>#&lt;#&lt;Class:0x316af20&gt;:0x312adbc&gt;
<br>&nbsp;&nbsp;&nbsp;&nbsp; On line #5 of app/views/layouts/admin.rhtml<br><br>&nbsp;&nbsp;&nbsp;&nbsp; 2:&nbsp;&nbsp; &lt;head&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp; 3:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;% # Include TinyMCE before other JS to avoid<br>problems -%&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp; 4:&nbsp;&nbsp;&nbsp;&nbsp; &lt;%= javascript_include_tag &quot;tiny_mce/tiny_mce&quot; %&gt;
<br>&nbsp;&nbsp;&nbsp;&nbsp; 5:&nbsp;&nbsp;&nbsp;&nbsp; &lt;%= tiny_mce if using_tiny_mce? %&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp; 6:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;%= render :partial =&gt; 'layouts/head' %&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp; 7:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;%= stylesheet_link_tag 'raid' %&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp; 8:<br><br><br>Seems like tinymce is not loading up properly when mocha is around :(
<br><br>Help pls<br><br>Regards<br><br>Michael Lee<br>Thoughtworks</blockquote><div><br>Hi Michael,<br><br>Sorry not to respond sooner - I've been away on holiday and your email has been sitting in the moderation queue because you haven't subscribed to the mailing list.
<br><br>I've returned to a big list of things to do, so not sure I'm going to get round to installing the tiny mce plugin. I assume your error comes and goes when you install/uninstall Mocha? Are you installing Mocha as a Rails plugin? Are you using HEAD?
<br><br>Is there any way you can narrow the scope of the problem to a simple failing test case?<br><br>Cheers,<br></div>-- <br></div>James.<br><a href="http://blog.floehopper.org">http://blog.floehopper.org</a>