Ruby on Rails
Monday, January 27, 2014
On Monday, January 27, 2014 5:00:27 AM UTC-5, Ruby-Forum.com User wrote:
By everything I mean everything. Untouched by assets pipeline.
External javascript libraries, like CK Editor for example, dynamicly
load javascript and css in runtime, depending on settings. So compiling
them with assets pipeline into one file makes no sense, even worse it
doesn't work at all.
Is there a mechanizm in rails to copy all files from ex.
../gems/../lib/assets/ck_editor to ../assets/ck_editor directory.
It is hard to automate copying since it is a moving target, due to gems
versions, so it has to be done by hand.
Funny thing is that everything works in development, but of course not
in production, since assets pipeline has no mechanizm to move whole
directory into assets directory.
Or have I missed something obvious?
The third paragraph in the Rails Guided titled "The Asset Pipeline" has this to say:
The asset pipeline is enabled by default. It can be disabled in config/application.rb
by putting this line inside the application class definition:
config.assets.enabled = false |
You can also disable the asset pipeline while creating a new application by passing the --skip-sprockets
option.
rails new appname --skip-sprockets |
You should use the defaults for all new applications unless you have a specific reason to avoid the asset pipeline.
Have you tried either of these?by
TheR
--
Posted via http://www.ruby-forum.com/.
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/82c4bee5-aa1f-4b99-bd2c-3c04d11f9d3f%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment