How to put everything from directory into assets as subdirectory

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?

by
TheR

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?

It is not that I don't use assets pipeline. I do. And I like it.

I just would like to know if there is any mechanizm inside Rails, that
would automaticaly copy whole content from one directory to
../public/assets directory. Or must I do it by hand.

by
TheR