-
Notifications
You must be signed in to change notification settings - Fork 881
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Works in Dev not in Production Rails 3.2 #87
Comments
+1 |
Looks like there's a temporary workaround at #84 |
I have the same problem. The solution posted at #84 doesn't work for me (probably because the problem is different). Seems 3 files can't get loaded If I inspect the content of the public/assets I find the ckeditor folder, with a lot o files inside. But no sign of those 3... So I tried to add those files manually in the pipeline, editing the Any idea on how to fix this? |
i wourkarounded this by downloading the ckeditor files to public/javascripts, futher, i did not use javascript_include_tag, i used a explicit script-tag with wired paths, so i was at least able to get it working in prod. hope this helps meanwhile there is no real solution for your problem. |
... or remove wrong css directives and add files to config.assets.precompile in my production.rb
|
I too wourkarounded this by downloading ckeditor to public/javascripts, but I'm wondering what's wrong here. |
did anyone of you mount the ckeditor to routes.rb? since then i was able to precomile and everything was awesome ;) mount Ckeditor::Engine => '/ckeditor' |
I did and got a strange result. Something compiled into How did you mounted it? Francis Yáñez This message may contain confidential and/or privileged information. El 17/02/2012, a las 17:18, Daniel Hanke
|
I had tried that But it did not work for me |
Hay, author!! When will be normal fix for that?? Please, give it for us! >_< |
@fjyaniez: i mounted it my putting this line into routes.rv: i did not even mention the ck* files in the precompile-paths. after precompiling, domain.tld/assets/[ckeditor/?]ckeditor.js was available To be more accurate, this solution works for me in production only, not in development, which is ok in my place. |
As I can see this is setted by default, isn't? |
iirc you have to call a rake-task for installation, or was that on old version only? i defenately can remember some rake ckeditor:install stuff. |
yeap rake ckeditor:install. It create some models, smth else and add that line into routes.rb |
so since it was missing for him, i thought he might have forgotten ;) |
@Inbreed I have configured it exactly as you, but no luck for me on production. So weird...(I ran generators and follow gem installation instructions word by word). |
@fjyaniez Did you also try Pepans hint? If its still not working you could download ckeditor and unpack to public/assets/ckeditor, rerun assets:precompile as workaround. thats the only think i can share with you - until its fixed, if its a bug. hopefully nobody slaps me for this hackaround ;) |
@Inbreed I put the ckeditor gem's version to public/javascripts and use include_javascript_tag. It's a workaround. |
@flyaniez what are you included with include_javascript_tag? Can give piece of code? |
Sure @graffzon <%= javascript_include_tag '/javascripts/ckeditor/ckeditor' %> $ ls public/javascripts/ckeditor
CHANGES.html LICENSE.html ckeditor.js ckeditor_basic.js ckeditor_source.js contents.css images plugins themes
INSTALL.html adapters ckeditor.pack ckeditor_basic_source.js config.js filebrowser lang skins I extracted the ckeditor folder from the gem instead downloading from ckeditor's homepage because the gem's one is modified to work with paperclip. |
what gem version are you using? |
ckeditor (3.7.0.rc2) |
Strange, but it doesn't work for me. Curly hands =( |
I copied into assets/ckeditor. Work's fine, will wait normal fix. |
keep in mind after you copied, you should at least regenerate config.js if you want to use the assets.
|
The "put it in the public and don't care about the assets pipeline" workaround works for me too. But is so sad to have to use it instead of the gem :( |
rc3 fixed the problem. |
I'm using 3.7.1 and still have the same problem, i have those files precompiled but config.serve_static_assets = true
config.assets.compile = true |
Same here, I had no luck, I ended up manually copy the ckeditor to public/assets |
This is still broken. |
This is still broken. +1 |
still an issue. |
+1 |
Try this: config.assets.precompile += Ckeditor.assets |
@galetahub sorry but it doesn't work, here is the output I'm getting:
|
My fault, I've updated to latest version (3.7.3) and it's fixed now... I see that 0504705 fixed the problem. Thanks. |
Using Rails 3.2 which shouldn't be much difference. It works beautifully in development, however in production, I'm running into some issues. I've compiled my assets, ran bundle install --deployment and I'm getting the following error. I've tried different web servers and webrick doesn't make any difference.
Any ideas?
The text was updated successfully, but these errors were encountered: