undefined local variable or method `include_tiny_mce_if_needed'
Reported by Rene Madsen | August 18th, 2009 @ 11:36 PM
Hi, I'm have a project, where I have this line included in application.html.haml as described on http://github.com/kete/tiny_mce/tree/master step 3.
It all works fine in development, but in test and production it does not work. I get this error:
ActionView::TemplateError (undefined local variable or method `include_tiny_mce_if_needed' for #<ActionView::Base:0x7fbb18ea12a0>) on line \#8 of app/views/layouts/application.html.haml:
Any suggestions to, what to try.
Comments and changes to this ticket
-
Rene Madsen August 19th, 2009 @ 01:55 AM
I have the following plugins:
ssl_requirement
email-spec
haml
tiny_mce
restful-authentication
hoptoad_notifier
acts_as_versioned
validation_reflection
translate
role_requirementAnd the following gems installed:
actionmailer (2.3.3, 2.3.2)
actionpack (2.3.3, 2.3.2)
activemerchant (1.4.2)
activerecord (2.3.3, 2.3.2)
activerecord-tableless (0.1.0)
activeresource (2.3.3, 2.3.2)
activesupport (2.3.3, 2.3.2)
aslakhellesoy-cucumber (0.3.94)
authlogic (2.1.1)
builder (2.1.2)
calendar_date_select (1.15)
capistrano (2.5.8)
capistrano-ext (1.2.1)
chriseppstein-compass (0.6.15)
cucumber (0.3.90)
diff-lcs (1.1.2)
expectations (1.2.1)
haml (2.2.2)
haml-edge (2.1.37)
highline (1.5.1)
linecache (0.43)
mislav-will_paginate (2.3.11)
mocha (0.9.7)
mysql (2.7)
net-scp (1.0.2)
net-sftp (2.0.2)
net-ssh (2.0.11)
net-ssh-gateway (1.0.1)
nokogiri (1.3.2)
polyglot (0.2.6)
rack (1.0.0)
rails (2.3.3, 2.3.2)
rake (0.8.7)
rcov (0.8.1.2.0)
rsl-stringex (1.0.0)
rspec (1.2.8)
rspec-rails (1.2.7.1)
ruby-debug-base (0.10.3)
ruby-debug-ide (0.4.6)
searchlogic (2.1.13)
sqlite3-ruby (1.2.5)
term-ansicolor (1.0.4)
thoughtbot-factory_girl (1.2.2)
thoughtbot-shoulda (2.10.2)
tlsmail (0.0.1)
treetop (1.3.0)
webrat (0.4.4)
ZenTest (4.0.0) -
ronin-71764 (at lighthouseapp) October 2nd, 2009 @ 09:18 PM
after doing exactly what is mentioned in the install howto, I get an error that is different but I think has to do with the same issue:
undefined method `development?' for "development":String
this happens when i add the line
<%= include_tiny_mce_if_needed %>
i figured out that it might have to do with <%= javascript_include_tag :all %> and I noticed that when I restart my server, a tinymce folder is created in public/javascripts, which is not loaded in my head tag when i drop the if_needed line in favor of include :all.
Hope that helps,
droom! -
ronin-71764 (at lighthouseapp) October 3rd, 2009 @ 03:15 AM
thanks kieran - this works perfectly. and you are right - this was rails 2.1.0-4 (ubuntu), but with this modification, it works out nicely ;)
-
jan.jones (at gmail) March 20th, 2010 @ 12:49 AM
I have this problem, any clues?
I am using 2.3.5, all works fine in dev but in staging/prod it gives the error. I am using 0.1.1.
Thanks
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
A Ruby on Rails plugin that allows easy implementation of the TinyMCE editor into your applications.