<div><span class="gmail_quote">On 18/10/06, <b class="gmail_sendername">Michael Lee</b> <<a href="mailto:yfl@bund.com.au">yfl@bund.com.au</a>> 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>#<#<Class:0x316af20>:0x312adbc>
<br> On line #5 of app/views/layouts/admin.rhtml<br><br> 2: <head><br> 3: <% # Include TinyMCE before other JS to avoid<br>problems -%><br> 4: <%= javascript_include_tag "tiny_mce/tiny_mce" %>
<br> 5: <%= tiny_mce if using_tiny_mce? %><br> 6: <%= render :partial => 'layouts/head' %><br> 7: <%= stylesheet_link_tag 'raid' %><br> 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>