Using Silverlight with Ruby on Rails?
Could someone po开发者_如何学Cint me in the right direction of putting Silverlight User Controls on my Ruby on Rails application's views?
Huh, you can interact with RoR from Silverlight by web services or JS, i think.
What you mean 'putting SL user controls on RoR app'? You can include .xap
into html page and Silverlight has the ability to use JS on a page where he is placed.
You neet to use IronRuby.
Documentation about using Silverlight with Iron Ruby is here: http://ironruby.net/browser/docs.html
If you would like to have Silverlight application on the page (and this page is written with RoR) then you can simply embedded .xap
file into the page - you can do it using object tag or JavaScript (Silverlight.js file)
Here's a quick tutorial - haven't tried it yet, but seems good. http://techblogging.wordpress.com/2008/03/26/using-silverlight-with-rubyonrails/
精彩评论