#2 ✓resolved
Marcelo Barbudas

undefined local variable or method `uses_tiny_mce'

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

Hi

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
    end
    
    

    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.

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

Pages