Forum: Radiant CMS Extensions public directory

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
767bedcbd5dd54d874a602925d98182e?d=identicon&s=25 Oliver Baltzer (Guest)
on 2007-03-28 05:39
(Received via mailing list)
Hi all,

some of the available extensions have a public folder. Is that folder
somehow merged into the app's default public folder or are files in
there accessed differently. I have some static Javascript that my
extension would like to use, but I can't seem to access the file via

http://hostname/javascripts/script.js.

Any pointers?

Cheers,
Oliver
8802b1fa1b53e2197beea9454244f847?d=identicon&s=25 Sean Cribbs (Guest)
on 2007-03-28 05:53
(Received via mailing list)
I just copy them manually.  However I did see someone's extension that
has a rake task to copy them to the public directory; maybe we can
move that upstream a bit.

Sean
D03835ee1210e4251e8c1a3976a38bc5?d=identicon&s=25 Andrea Franz (Guest)
on 2007-03-28 10:48
(Received via mailing list)
Il giorno 28/mar/07, alle ore 05:41, Oliver Baltzer ha scritto:

>
In my extension I use a task like this:

desc "Copies files in public/admin"
task :move_files => :environment do
  extension_public = File.join(File.dirname(__FILE__), '../', '../',
'public')
         cp_r extension_public, RAILS_ROOT
end
767bedcbd5dd54d874a602925d98182e?d=identicon&s=25 Oliver Baltzer (Guest)
on 2007-03-28 15:11
(Received via mailing list)
Hi Andrea:

Andrea Franz wrote:
> In my extension I use a task like this:
>
> desc "Copies files in public/admin"
> task :move_files => :environment do
>     extension_public = File.join(File.dirname(__FILE__), '../', '../',
> 'public')
>         cp_r extension_public, RAILS_ROOT
> end

Great, thanks. That should do the job.

Cheers,
Oliver
This topic is locked and can not be replied to.