Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

There was a problem

You must be a member of this account.

undefined local variable or method `uses_tiny_mce'

#39

I am using Ruby Rails 3.0.7 I have tried both the gem install and git install. I have out the uses_tiny_mce in my views controller and get "undefined local variable or method `uses_tiny_mce' .

Here is what is in my views controller:
class HtmlmesController < ApplicationController

def index uses_tiny_mce :options => { :theme => 'advanced', :theme_advanced_resizing => true, :theme_advanced_resize_horizontal => false, :plugins => %w{ table fullscreen } } @htmlcode = Htmlme.new @htmlme = "" end

def create @htmlcode = Hhtmlme.new(params[:htmlmes]) @htmlme = Graphicad.find(params[:id]) render :action => "index" end

end

Can I get some halp on what to do?

Reported by Jonah Brown · July 25th, 2011 @ 09:25 AM

State: wontfix
Milestone: none
Assigned to: nobody

Activity

  1. Walter McGinnis
    Walter McGinnis
    • State changed from new to wontfix

    Unfortunately I don't have time to track this down and the latest code is problematic with later versions of Rails (due to jQuery issues, I believe). I recommend you explore other TinyMCE plugins for Rails or ask on http://groups.google.com/group/rubyonrails-talk.

    In the long run (post Rails 3.1 release), this gem should become depreciated as the new way of handling JavaScript (the asset pipeline) should make including JS libraries much simpler.

    Good luck,
    Walter

    August 19th, 2011 @ 03:23 PM

  2. Walter McGinnis
    Walter McGinnis

    I should have phrased "jquery issues" as "jquery conflicts".

    August 19th, 2011 @ 03:23 PM

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.