#2 ✓resolved
Marcelo Barbudas

undefined local variable or method `uses_tiny_mce'

Reported by Marcelo Barbudas | April 5th, 2009 @ 06:12 AM


I'm trying to use the tiny_mce plugin in a project.

Using script/plugin install I installed the git repository, ran rake tiny_mce:install and proceeded to add uses_tiny_mce in my controller.

However I keep getting this error: undefined local variable or method uses_tiny_mce' for #<CampaignsController:0xb5b23760>

$ ls vendor/plugins/tiny_mce/ lists all the files, they are there.

I'm using nothing particularly weird in my project. I tested with with both Rails 2.2.2 and Rails 2.3.2.

-- cheers, m.

Comments and changes to this ticket

  • Marcelo Barbudas

    Marcelo Barbudas April 5th, 2009 @ 09:35 PM

    Never Mind.

    I looked in the tests and figured how to use it.

    Please make it more clear in the Readme for slow people like me :)

    class FullTinyMCEController < ApplicationController
      uses_tiny_mce :options => { :plugins => ['spellchecker'] },
                    :raw_options => '',
                    :only => ['new_page', 'edit_page']
      include TinyMCEActions

    Not in the controller method.

  • Kieran P

    Kieran P April 6th, 2009 @ 08:01 AM

    • State changed from “new” to “resolved”

    Hey Marcelo, sorry for the late response. Glad you were able to work it out. I'll clarify in the readme where the method should go.

  • anonymous

    anonymous August 30th, 2019 @ 04:03 PM

    I feel glad in the wake of perusing your perspectives. You attempt their best to give the best data at this issue. The individuals who run the congregation truly regard and give the great data to the individuals and now you can write my paper for me reviews for quality work. Be that as it may, a few people did not give the suitable data to their understudy which isn't the great way.

  • Tim Nollan

    Tim Nollan November 12th, 2019 @ 07:33 AM

    I also want to share my project. Here is it.

  • BillShiphr

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.

New-ticket Create new ticket

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.

People watching this ticket