Forum: Ruby on Rails some problems with integrating XUL into Rails

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
2ea192cb0f5f2423e0b3c58ca62bc8b5?d=identicon&s=25 Miklos Hollender (Guest)
on 2006-06-10 13:11
(Received via mailing list)
Dear Friends,

I started integrating XUL into Rails, however, I have some problems.

The first problem is that I can open local XUL files with Firefox, but
cannot open them through Rails/Webrick, Firefox says it does not
what it is.

I've read the cookbookxul experiment and I know I have to play around
but a contoller action like

def run_xul
    render_text '<script>

still does not work.

I also added the meta-http content-type tag to the xul file, but does
help also.

Do yo have any ideas?

Also, where should I look around in the complex directory tree of Rails
if I
want to make .rxul work like .rhtml and .rjs?


3dd4b52a0946bd698b1d1635a46ea3a3?d=identicon&s=25 François Beausoleil (fbeausoleil)
on 2006-06-12 04:33
(Received via mailing list)
Hi !

2006/6/10, Miklos Hollender <>:
> def run_xul
> response.headers["content-type"]="application/vnd.mozilla.xul+xml"
>     render_text '<script>
>   end

What you're doing here is telling Firefox to open a local file.
Instead, use #send_file to send the file with the correct Content-Type
to Firefox.  That should do it.

Bye !
This topic is locked and can not be replied to.