# Dojo and rails

**URL:** <https://www.ruby-forum.com/t/dojo-and-rails/76961>\
**Category:** Rails\
**Created:** [November 29, 2005, 1:39pm UTC](https://www.ruby-forum.com/t/dojo-and-rails/76961 "2005-11-29T13:39:41Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![sergiborras](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/439d5e/32.png) [@sergiborras](https://www.ruby-forum.com/u/sergiborras)\
**Post date:** [November 29, 2005, 1:39pm UTC](https://www.ruby-forum.com/t/dojo-and-rails/76961/1 "2005-11-29T13:39:41Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![sergiborras](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/439d5e/32.png) [@sergiborras](https://www.ruby-forum.com/u/sergiborras)\
**Post date:** [November 29, 2005, 6:43pm UTC](https://www.ruby-forum.com/t/dojo-and-rails/76961/2 "2005-11-29T18:43:15Z")

</div>

It should work.

---

<div class="post-metadata">

**Author:** ![sergiborras](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/439d5e/32.png) [@sergiborras](https://www.ruby-forum.com/u/sergiborras)\
**Post date:** [November 29, 2005, 7:27pm UTC](https://www.ruby-forum.com/t/dojo-and-rails/76961/3 "2005-11-29T19:27:40Z")

</div>

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

Documento sin título
# New document

some text

---

<div class="post-metadata">

**Author:** ![sergiborras](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/439d5e/32.png) [@sergiborras](https://www.ruby-forum.com/u/sergiborras)\
**Post date:** [November 29, 2005, 8:08pm UTC](https://www.ruby-forum.com/t/dojo-and-rails/76961/4 "2005-11-29T20:08:12Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![sergiborras](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/439d5e/32.png) [@sergiborras](https://www.ruby-forum.com/u/sergiborras)\
**Post date:** [November 30, 2005, 9:42pm UTC](https://www.ruby-forum.com/t/dojo-and-rails/76961/5 "2005-11-30T21:42:31Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![sergiborras](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/439d5e/32.png) [@sergiborras](https://www.ruby-forum.com/u/sergiborras)\
**Post date:** [December 12, 2005, 4:18pm UTC](https://www.ruby-forum.com/t/dojo-and-rails/76961/6 "2005-12-12T16:18:08Z")

</div>

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.
