Forum: Rails Engines public/images

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.
995230fdabb8834dec6ab083844230bb?d=identicon&s=25 Todd Willey (Guest)
on 2006-03-27 23:04
(Received via mailing list)
Is there a reason that public/images isn't overlaid into
engine_files/myengine/images the same way javascripts and stylesheets
are?  Is there a way to turn it on?

-todd[1]
A6cd05d51f0a40a56a1c235620ebdfec?d=identicon&s=25 Bart Masschelein (Guest)
on 2006-03-27 23:18
(Received via mailing list)
Hello,

I also created some images in a new public/images directory this
evening, and I was wondering if it would copy the images directory,
and.... it did! I did not have to turn anything on. Of course you have
to restart webrick. If you're using Apache, I already noticed that it
does not even copy/update the javascripts and stylesheets directory.

Bart
995230fdabb8834dec6ab083844230bb?d=identicon&s=25 Todd Willey (Guest)
on 2006-03-27 23:45
(Received via mailing list)
On 3/27/06, Bart Masschelein <bart.masschelein@skynet.be> wrote:
> Hello,
>
> I also created some images in a new public/images directory this
> evening, and I was wondering if it would copy the images directory,
> and.... it did! I did not have to turn anything on. Of course you have
> to restart webrick. If you're using Apache, I already noticed that it
> does not even copy/update the javascripts and stylesheets directory.
>
> Bart

Thanks Bart

I just needed a restart.  I wonder why the directory wasn't there to
begin with?

-todd[1]
05d703f649ef1d07e78d7b479fb4c4ac?d=identicon&s=25 James Adam (Guest)
on 2006-03-28 01:09
(Received via mailing list)
When you start Rails (via a webserver or via the console), it will
copy *everything* underneath public/ in your engines into
subdirectories of the main RAILS_ROOT/public folder. If you make
changes to these files, you'll have to restart your server (or console
process) to have them re-copied.

When running a webserver, you'll need to make sure that the user which
your webserver runs as has permission to write files under /public.

- james

On 3/27/06, Todd Willey <xtoddx@gmail.com> wrote:
>
> Thanks Bart
>
> I just needed a restart.  I wonder why the directory wasn't there to begin with?
>
> -todd[1]
> _______________________________________________
> engine-users mailing list
> engine-users@lists.rails-engines.org
> http://lists.rails-engines.org/listinfo.cgi/engine...
>


--
* J *
  ~
00e3a96684ab390a350b0271e98741d3?d=identicon&s=25 Nshbrown Nshbrown (nshb)
on 2006-03-28 02:52
(Received via mailing list)
Depending on what version of engines you are on, there are also some
helper
methods as well..

Engine_image
Engine_image_src

-Nb


On 3/27/06 3:09 PM, "James Adam" <james.adam@gmail.com> wrote:

>
>>> Bart
>> http://lists.rails-engines.org/listinfo.cgi/engine...
>>
>
>
> --
> * J *
>   ~
> _______________________________________________
> engine-users mailing list
> engine-users@lists.rails-engines.org
> http://lists.rails-engines.org/listinfo.cgi/engine...

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Nathaniel S. H. Brown                        http://nshb.net
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Efe398b3b5436b0a8d4430090e8f86ea?d=identicon&s=25 Subimage (Guest)
on 2006-03-29 08:22
Quick, someone write a rake task that copies all public images/js/css
files over so I don't have to...

Include it with the next version of engines too :D
05d703f649ef1d07e78d7b479fb4c4ac?d=identicon&s=25 James Adam (Guest)
on 2006-03-29 09:42
(Received via mailing list)
At the moment, calling

  Engines.copy_engine_files(Engines[:your_engine_name])

will do it. I'll make it more convenient in the next release.

- james

On 3/29/06, Subimage <subimage@gmail.com> wrote:
> http://lists.rails-engines.org/listinfo.cgi/engine...
>


--
* J *
  ~
This topic is locked and can not be replied to.