Does Rublog support inline images or image links?

J

Jim Freeze

Hi

Does Rublog (using rdoc format) support inline images or image links?

I've tried everything and nothing seems to work.

I just get little question mark boxes or links that don't work.

I can link to an html file with:

http:Directory/File.html

but,

http:Directory/File.gif

gives me a question mark box.

and

someImg[Directory/File.gif]

yields a link, but the browser changes the case on Directory/File
and nothing is found.

Ugh.

Any help appreciated.
 
C

Chad Fowler

Hi

Does Rublog (using rdoc format) support inline images or image links?

I've tried everything and nothing seems to work.

I just get little question mark boxes or links that don't work.

I can link to an html file with:

http:Directory/File.html

but,

http:Directory/File.gif

gives me a question mark box.

and

someImg[Directory/File.gif]

yields a link, but the browser changes the case on Directory/File
and nothing is found.

Ugh.

It should work. A validate URL for an image should generate the right tag.

For example, I just created a file here called "Blah.rdoc" with the
following contents:
<filecontents>
Blah
http://www.chadfowler.com/images/brassband2.jpg
</filecontents>

It made a new entry with the title "Blah" and an inlined image. (Try
that exactly URL in your Rublog and I believe you'll see a picture of
me with the Rajasthan Brass Band).

--

Chad Fowler
http://chadfowler.com
http://rubycentral.org
http://rubygarden.org
http://rubygems.rubyforge.org (over 100,000 gems served!)
 
J

Jim Freeze

* Chad Fowler said:
It should work. A validate URL for an image should generate the right tag.

For example, I just created a file here called "Blah.rdoc" with the
following contents:
<filecontents>
Blah
http://www.chadfowler.com/images/brassband2.jpg
</filecontents>

Well, that worked for me too, but, I guess the real question
is what is a valid URL for an image inside a Rublog directory?

I am only running Rubylog, so I guess I am not giving it
a valid URL.

BTW, the following is very puzzling:

http://localhost:8808/index.cgi/MyBlogDir/SomeFile.rdoc

loads fine, but

http://localhost:8808/index.cgi/MyBlogDir/SomeFile.gif

does not.

Note: the image loads when I put it on another web server,
so the image is good. I just can't seem to figure out the
local URL.
 
C

Chad Fowler

Well, that worked for me too, but, I guess the real question
is what is a valid URL for an image inside a Rublog directory?


Ahhhhh....unless you mount that directory with the webrick file
servlet, there is no way to directly access a file in the Rublog data
directory. Alternatively, you could also make the directory web
accessible. The way I run RubLog is that I have my data directory (in
a CVS repository) outside the normal document root of my web server,
and I serve images statically via Apache.

So, you'll either need to do that, or if you're using Webrick, you
need to modify extras/rublog_servlet.rb in the RubLog distribution and
add something like the following:

s.mount("/images", HTTPServlet::FileHandler, "/the/path/to/your/images/")


--

Chad Fowler
http://chadfowler.com
http://rubycentral.org
http://rubygarden.org
http://rubygems.rubyforge.org (over 300,000 gems served!)
 
J

Jim Freeze

* Chad Fowler said:
* Chad Fowler <[email protected]> [2005-04-21 09:46:18 +0900]:

Ahhhhh....unless you mount that directory with the webrick file
servlet, there is no way to directly access a file in the Rublog data
directory. Alternatively, you could also make the directory web
accessible. The way I run RubLog is that I have my data directory (in
a CVS repository) outside the normal document root of my web server,
and I serve images statically via Apache.

So, you'll either need to do that, or if you're using Webrick, you
need to modify extras/rublog_servlet.rb in the RubLog distribution and
add something like the following:

s.mount("/images", HTTPServlet::FileHandler, "/the/path/to/your/images/")

Thanks. Now that I know what rublog is doing, that was easy.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,170
Messages
2,570,925
Members
47,468
Latest member
Fannie44U3

Latest Threads

Top