Forum: Ruby on Rails javascript and rails?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
0b99e4c88649ccfa84ba8b59bdc92b4a?d=identicon&s=25 Lalala Liliil (lalala)
on 2007-03-31 08:39
Hi everyone
I'm trying to learn ruby on rails and have some questions to ask about
combining rails and javascript

Right now I'm in a situation where I'm have my ror app and another
javasciprt library that I'm using.

In my rhtml file I embedded a javascript method using <script>
method_x(int) </script>
and have a button y that will call method_x() when onClick

What I like to see is when 1 user click button y, the same event will
happen to everybody who is viewing the page.

Thank you for reply
This topic is locked and can not be replied to.