# Re: RubyJS - Convert Ruby to Javascript

**URL:** <https://www.ruby-forum.com/t/re-rubyjs-convert-ruby-to-javascript/81865>\
**Category:** Ruby\
**Created:** [January 15, 2007, 9:11pm UTC](https://www.ruby-forum.com/t/re-rubyjs-convert-ruby-to-javascript/81865 "2007-01-15T21:11:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![michaeln](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/b19c9b/32.png) [@michaeln](https://www.ruby-forum.com/u/michaeln)\
**Post date:** [January 15, 2007, 9:11pm UTC](https://www.ruby-forum.com/t/re-rubyjs-convert-ruby-to-javascript/81865/1 "2007-01-15T21:11:58Z")

</div>

Une Bévue wrote:

> …/bin/…/lib/rubyjs/method\_generator.rb:1040:in `method\_missing’: Not  
> implemented (RuntimeError)  
> […]  
> from …/bin/rubyjs\_gen:82

Ah, that seems to be a different problem. Can I see your “Ruby/JS” code?  
You probably use a Ruby construct which is not yet supported (“case” for  
example).

Regards,

Michael

---

<div class="post-metadata">

**Author:** ![michaeln](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/b19c9b/32.png) [@michaeln](https://www.ruby-forum.com/u/michaeln)\
**Post date:** [January 16, 2007, 10:50am UTC](https://www.ruby-forum.com/t/re-rubyjs-convert-ruby-to-javascript/81865/2 "2007-01-16T10:50:40Z")

</div>

Michael N. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > I got the same error with that writing :  
> > …/bin/…/lib/rubyjs/method\_generator.rb:1040:in `method\_missing’: Not  
> > implemented (RuntimeError)  
> > […]  
> > from …/bin/rubyjs\_gen:82
> 
> Ah, that seems to be a different problem. Can I see your “Ruby/JS” code?  
> You probably use a Ruby construct which is not yet supported (“case” for  
> example).

not at all, as i said, i’ve just simplified your HelloWorld class but  
add the `document.getEllementById...` and change yours p(something) to  
self.puts(something) here it is :

\<[http://www.yvon-thoraval.com/ruby2js/ntecs.de/hg-projects/rubyjs/essai/](http://www.yvon-thoraval.com/ruby2js/ntecs.de/hg-projects/rubyjs/essai/)  
essai.rb\>

the parent folder contains all of this test (essai in french).
