Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6604603
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:10:45+00:00 2026-05-25T19:10:45+00:00

I am trying to get tiny_mce to work with my Rails 3.1 application and

  • 0

I am trying to get tiny_mce to work with my Rails 3.1 application and its almost works.

I have it installed in vendor/assets/tiny_mce and included in my application.js bootstrap:

application.js

//= require jquery
//= require jquery_ujs
//= require_tree .
//= require tiny_mce

tinyMCE.init({
    mode : "specific_textareas",
    editor_selector : "mce_editor"
});

Now when I view my page with ?debug_assets=true then it doesn’t combine the files with sprockets and everything works as expected. However if I get rid of the ?debug_assets=true then it no longer works.

It seems that TinyMce automatically loads a few additional js files (lang files etc) when needed but this doesn’t seem to work with rails 3.1. Any ideas how to fix this?

Thanks for your suggestion, I checked the request logs and the needed files were:

ActionController::RoutingError (No route matches [GET] "/home_pages/4/langs/en.js"):

and 

ActionController::RoutingError (No route matches [GET] "/home_pages/4/themes/simple/editor_template.js"):

There dozens of different js files in tiny_mce and I am assuming it loads a different set based on which configs you initialise it with. Should I just manually require these extra js files one at a time to my application.js file until rails stops complaining or is there a more general or best practices solution? Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T19:10:45+00:00Added an answer on May 25, 2026 at 7:10 pm

    Install the tinymce-rails gem – it’s worked well for me in the past. Delete the tiny_mce folder from your assets/javascripts folder.

    Change your manifest to this:

    //= require jquery
    //= require jquery_ujs
    //= require tinymce
    //= require_tree .
    

    and it’s better to move this to main.js

    tinyMCE.init({
        mode : "specific_textareas",
        editor_selector : "mce_editor"
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying get Struts 2 and Tiles to work and I am using
Trying to get comfortable with jQuery and I have encountered some sample code that
Trying to get this to work, with no luck: [DataMember] public Type ParameterType {
Trying to get a JSON output to work with jqGrid 'userdata' option. The example
I am trying to get the following example to work in Flash Builder 4:
I can't get spring annotations to work at all, I'm just trying to get
I'm trying to get the text written inside a TinyMCE textarea . I have
So I'm trying to get rich text to work for the cheeserater program where
I'm trying to get a GWT application up and running with TinyMCE and spell
We are trying to get tinyMCE object from DOM in order to set the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.