Forum: Ruby on Rails How to put everything from directory into assets as subdirectory

Be07c8d0d6867fd9a0d525f7d17600e2?d=identicon&s=25 Damjan Rems (ther)
on 2014-01-27 11:00
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? I am currently at Rails 3.2.16.

Af2ce6689213fdb78913a9662b18da6b?d=identicon&s=25 Rick Lloyd (ricklloyd)
on 2014-01-27 14:15
(Received via mailing list)
On Monday, January 27, 2014 5:00:27 AM UTC-5, User wrote:
> 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
 *config.assets.enabled = false*

*You can also disable the asset pipeline while creating a new
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?
Be07c8d0d6867fd9a0d525f7d17600e2?d=identicon&s=25 Damjan Rems (ther)
on 2014-01-27 15:27
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.

Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.