From: Roger Pack Date: 2009-07-10T22:31:41+09:00 Subject: Re: Ruby on Rails - navigation tree > I also want to add a custom right-click context menu > (http://developer.yahoo.com/yui/examples/menu/treeviewcontextmenu.html). > I followed the directions, and they work OK, however, it does not > escape my attention that I am using Ruby to hardcode javascript. Is > there another, more elegant, way to do this? You could include it as a separate .js file http://www.google.com/search?client=opera&rls=en&q=how+to+include+a+js+file&sourceid=opera&ie=utf-8&oe=utf-8 Note also that the rails group might be more helpful since some of us on this list don't use rails as often as they. =r -- Posted via http://www.ruby-forum.com/.