Extensions public directory

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

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

Il giorno 28/mar/07, alle ore 05:41, Oliver B. 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

Hi Andrea:

Andrea F. 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