Dojo and rails

Hi there,

Does anyone now if Dojo can be used with Rails atm ? I am trying to
include the Dojo Rich Text Editor in a rhtml with no success.

It should work.

the following does not work in an .rhtml maybe i am doing something
wrong

Documento sin título

New document

some text

When you change it to an RHTML file, you need to change the src
attribute of your tag to something served from the server,
even if it’s just localhost.

Josh

Has anyone gotten dojo to work? especially the rich text editor? I
downloaded the kitchen sink from the nightly build and tried using
the textbox call as well as the div call that they mention on the
site but I can’t get the editor to appear at all.

I have the following calls in my header for javascripts:

<%= javascript_include_tag ‘prototype’, ‘behaviour’, ‘scriptaculous’,
‘prototype-ex’, ‘date-picker’ %>

<script type="text/javascript">dojo.require("dojo.widget.Editor");</

script>

But ca not for the life of me get the editor to appear.

Andrew

Yes, I did as Josh told me, and it worked for the the rt editor. As
long as the src attribute of the script tag points to a file served by
the server, it should work.