<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-5419182.post4388683167068909358..comments</id><updated>2008-04-11T12:59:00.656-07:00</updated><category term='ruby'/><category term='Python'/><category term='bob ross'/><category term='DLR'/><category term='Visual Studio'/><category term='Chiron'/><category term='Twitter'/><category term='HAML'/><category term='MacOSX'/><category term='Microsoft'/><category term='Performance'/><category term='MacDrive'/><category term='Hack'/><category term='graduation'/><category term='Release'/><category term='NYC'/><category term='WebCam'/><category term='Lang.NET'/><category term='Gestalt'/><category term='christmas'/><category term='Dynamic Languages'/><category term='rational edge'/><category term='SQLServer'/><category term='Windows'/><category term='Apple'/><category term='Head First OOAD'/><category term='ASP.NET'/><category term='Finance'/><category term='Testing'/><category term='Dbus'/><category term='Scripting'/><category term='MSDN'/><category term='Seattle'/><category term='css'/><category term='OSCON'/><category term='git'/><category term='Cucumber'/><category term='PyCon'/><category term='rails'/><category term='DevConnections'/><category term='Walk Through'/><category term='Mono'/><category term='Internship'/><category term='JSON'/><category term='IronPython'/><category term='review'/><category term='new york'/><category term='JScript'/><category term='HTML5'/><category term='Windows 7'/><category term='NYC CodeCamp'/><category term='Embedding'/><category term='rubyconf'/><category term='wpi'/><category term='Website'/><category term='rafferty'/><category term='RailsConf'/><category term='Sparkline'/><category term='tutorial'/><category term='Pidgin'/><category term='webdesign'/><category term='ASP'/><category term='wii'/><category term='Silverline'/><category term='Lab49'/><category term='game'/><category term='Sinatra'/><category term='Java'/><category term='IIS'/><category term='VisualBasic'/><category term='MIX10'/><category term='Open Source'/><category term='C#'/><category term='nichum'/><category term='Life'/><category term='Firefox'/><category term='.NET 4.0'/><category term='Moonlight'/><category term='Linux'/><category term='html'/><category term='assistment'/><category term='Flickr'/><category term='MIX08'/><category term='worcester'/><category term='IronRuby'/><category term='smpl'/><category term='Internet Explorer'/><category term='WPF'/><category term='REPL'/><category term='talks'/><category term='Silverlight'/><category term='.NET'/><category term='CodePlex'/><title type='text'>Comments on jimmy.thinking: Silverlight on Rails</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.jimmy.schementi.com/feeds/4388683167068909358/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5419182/4388683167068909358/comments/default'/><link rel='alternate' type='text/html' href='http://blog.jimmy.schementi.com/2008/04/silverlight-on-rails.html'/><author><name>Jimmy Schementi</name><uri>https://profiles.google.com/116380716127564408544</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-Fl3zUgl9dMw/AAAAAAAAAAI/AAAAAAAAAiE/FPzfEKIJZN4/s512-c/photo.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>7</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5419182.post-3257880298483267264</id><published>2008-04-11T12:59:00.000-07:00</published><updated>2008-04-11T12:59:00.000-07:00</updated><title type='text'>@michael: Well, if I give the code out today it wi...</title><content type='html'>@michael: Well, if I give the code out today it will only work with Silverlight. =) Once Moonlight gets up to snuff then it'll just work in that as well. Though, the only requirement for a host is that it runs real Ruby in the browser; Silverlight is the only thing that does that today.&lt;BR/&gt;&lt;BR/&gt;@josh: Gotta have views on the client if you're gonna run real controller code. =) &lt;BR/&gt;&lt;BR/&gt;My thinking about "when do controllers go to the client" is whenever they're needed. Though, this is going to be hard, because for any rendered action, you need to see if there are any "links" to client actions. If so, the controller that action is in, plus any dependencies it may have on other controllers/modules/views, needs to be sent to the client. The  hard part is all these dependencies are dynamic (for instance, if you say "User" and it's not defined already, Rails will require /app/models/User.rb for you). Realistically, I may just send the controller, all the models, all the libs, and the actions views. &lt;BR/&gt;&lt;BR/&gt;Another gotcha is "what if a client action calls another client action?" =) So, it's not such an easy problem, and I'm not gonna solve by speculating ... I'll just have to make it and go from there.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5419182/4388683167068909358/comments/default/3257880298483267264'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5419182/4388683167068909358/comments/default/3257880298483267264'/><link rel='alternate' type='text/html' href='http://blog.jimmy.schementi.com/2008/04/silverlight-on-rails.html?showComment=1207943940000#c3257880298483267264' title=''/><author><name>Jimmy Schementi</name><uri>http://www.blogger.com/profile/05370777584064015818</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://www.jimmy.schementi.com/images/me/DSC05470-1_80.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.jimmy.schementi.com/2008/04/silverlight-on-rails.html' ref='tag:blogger.com,1999:blog-5419182.post-4388683167068909358' source='http://www.blogger.com/feeds/5419182/posts/default/4388683167068909358' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1788848580'/></entry><entry><id>tag:blogger.com,1999:blog-5419182.post-1990720729222016420</id><published>2008-04-11T07:04:00.000-07:00</published><updated>2008-04-11T07:04:00.000-07:00</updated><title type='text'>congratulations on getting it working!&lt;br&gt;&lt;br&gt;I re...</title><content type='html'>congratulations on getting it working!&lt;BR/&gt;&lt;BR/&gt;I really like the idea of sending the views as well.&lt;BR/&gt;&lt;BR/&gt;Are the controllers sent all at once, or is it on by request basis?  For example, someone requests /users/list&lt;BR/&gt;and the entire users controller gets sent down, along with all the view associated with that controller, or are they all sent in the initial request?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5419182/4388683167068909358/comments/default/1990720729222016420'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5419182/4388683167068909358/comments/default/1990720729222016420'/><link rel='alternate' type='text/html' href='http://blog.jimmy.schementi.com/2008/04/silverlight-on-rails.html?showComment=1207922640000#c1990720729222016420' title=''/><author><name>Josh</name><uri>http://www.blogger.com/profile/13666102861045517530</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://joshuamcharles.com/JoshWeb.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.jimmy.schementi.com/2008/04/silverlight-on-rails.html' ref='tag:blogger.com,1999:blog-5419182.post-4388683167068909358' source='http://www.blogger.com/feeds/5419182/posts/default/4388683167068909358' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1142534987'/></entry><entry><id>tag:blogger.com,1999:blog-5419182.post-8619853102337301735</id><published>2008-04-11T04:55:00.000-07:00</published><updated>2008-04-11T04:55:00.000-07:00</updated><title type='text'>That is pretty sweet, you should generalize it a b...</title><content type='html'>That is pretty sweet, you should generalize it a bit though so you don't HAVE to use silverlight, be interesting to see what other hosts could be used. Moonlight for instance.  Very, very cool though.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5419182/4388683167068909358/comments/default/8619853102337301735'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5419182/4388683167068909358/comments/default/8619853102337301735'/><link rel='alternate' type='text/html' href='http://blog.jimmy.schementi.com/2008/04/silverlight-on-rails.html?showComment=1207914900000#c8619853102337301735' title=''/><author><name>Michael Letterle</name><uri>http://blog.prokrams.com</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.jimmy.schementi.com/2008/04/silverlight-on-rails.html' ref='tag:blogger.com,1999:blog-5419182.post-4388683167068909358' source='http://www.blogger.com/feeds/5419182/posts/default/4388683167068909358' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1102101712'/></entry><entry><id>tag:blogger.com,1999:blog-5419182.post-2843364693446938081</id><published>2008-04-11T02:18:00.000-07:00</published><updated>2008-04-11T02:18:00.000-07:00</updated><title type='text'>Oh, and to answer you last question Josh:&lt;br&gt;&lt;br&gt;"...</title><content type='html'>Oh, and to answer you last question Josh:&lt;BR/&gt;&lt;BR/&gt;"a copy of this controller would be sent to the client when someone visits /foo."&lt;BR/&gt;&lt;BR/&gt;So today the entire controller is sent to the client. In the future, I'll also send down the views for all client actions as well (once I get erb working).&lt;BR/&gt;&lt;BR/&gt;It'll be interesting to see if I can keep this "figuring out all the dependencies" game going =)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5419182/4388683167068909358/comments/default/2843364693446938081'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5419182/4388683167068909358/comments/default/2843364693446938081'/><link rel='alternate' type='text/html' href='http://blog.jimmy.schementi.com/2008/04/silverlight-on-rails.html?showComment=1207905480000#c2843364693446938081' title=''/><author><name>Jimmy Schementi</name><uri>http://www.blogger.com/profile/05370777584064015818</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://www.jimmy.schementi.com/images/me/DSC05470-1_80.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.jimmy.schementi.com/2008/04/silverlight-on-rails.html' ref='tag:blogger.com,1999:blog-5419182.post-4388683167068909358' source='http://www.blogger.com/feeds/5419182/posts/default/4388683167068909358' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1788848580'/></entry><entry><id>tag:blogger.com,1999:blog-5419182.post-9003860924868747384</id><published>2008-04-11T01:54:00.000-07:00</published><updated>2008-04-11T01:54:00.000-07:00</updated><title type='text'>By the way, I got this example working today! With...</title><content type='html'>By the way, I got this example working today! Without "client :time" it works as usual, making an AJAX request when clicking on the "Show time" link. But when you add "client :time", clicking on "Show time" simply runs the code on the client! Awesome!&lt;BR/&gt;&lt;BR/&gt;I'm probably going to put this up on RubyForge ... just not sure whether I should make my own project or stick it in the IronRuby? Regardless, code is coming =)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5419182/4388683167068909358/comments/default/9003860924868747384'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5419182/4388683167068909358/comments/default/9003860924868747384'/><link rel='alternate' type='text/html' href='http://blog.jimmy.schementi.com/2008/04/silverlight-on-rails.html?showComment=1207904040000#c9003860924868747384' title=''/><author><name>Jimmy Schementi</name><uri>http://www.blogger.com/profile/05370777584064015818</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://www.jimmy.schementi.com/images/me/DSC05470-1_80.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.jimmy.schementi.com/2008/04/silverlight-on-rails.html' ref='tag:blogger.com,1999:blog-5419182.post-4388683167068909358' source='http://www.blogger.com/feeds/5419182/posts/default/4388683167068909358' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1788848580'/></entry><entry><id>tag:blogger.com,1999:blog-5419182.post-582635301353512908</id><published>2008-04-11T01:46:00.000-07:00</published><updated>2008-04-11T01:46:00.000-07:00</updated><title type='text'>The rational behind using link_to_remote is becaus...</title><content type='html'>The rational behind using link_to_remote is because I want the code to work regardless of whether "client :time" is there or not. Idea being you write you app without this client/server division in mind, but not have to rewrite any code when you  do make the "client or server" decision.&lt;BR/&gt;&lt;BR/&gt;I wouldn't overload link_to_function when it takes a string, since code today depends on that being JavaScript. However, when it takes a block I could run it with Silverlight if available. &lt;BR/&gt;&lt;BR/&gt;I'd definitely have link_to_silverlight_function, but its existence is unrelated to running controller code on the client. Granted, very useful though, as it's a much more explicit way to run code in Silverlight (and probably the lower hanging fruit =P).</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5419182/4388683167068909358/comments/default/582635301353512908'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5419182/4388683167068909358/comments/default/582635301353512908'/><link rel='alternate' type='text/html' href='http://blog.jimmy.schementi.com/2008/04/silverlight-on-rails.html?showComment=1207903560000#c582635301353512908' title=''/><author><name>Jimmy Schementi</name><uri>http://www.blogger.com/profile/05370777584064015818</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://www.jimmy.schementi.com/images/me/DSC05470-1_80.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.jimmy.schementi.com/2008/04/silverlight-on-rails.html' ref='tag:blogger.com,1999:blog-5419182.post-4388683167068909358' source='http://www.blogger.com/feeds/5419182/posts/default/4388683167068909358' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1788848580'/></entry><entry><id>tag:blogger.com,1999:blog-5419182.post-8578415568738968663</id><published>2008-04-07T12:18:00.000-07:00</published><updated>2008-04-07T12:18:00.000-07:00</updated><title type='text'>Wow this looks great.&lt;br&gt;&lt;br&gt;The "link_to_remote" ...</title><content type='html'>Wow this looks great.&lt;BR/&gt;&lt;BR/&gt;The "link_to_remote" thing seems a bit awkward since it's being run on the client, though.  The "link_to_function" method would be more natural, since it's a local function, or better yet: "link_to_silverlight_function"&lt;BR/&gt;&lt;BR/&gt;The client call at the beginning seems really clean.  Does it send the whole controller to the client, then?  That wasn't completely clear.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5419182/4388683167068909358/comments/default/8578415568738968663'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5419182/4388683167068909358/comments/default/8578415568738968663'/><link rel='alternate' type='text/html' href='http://blog.jimmy.schementi.com/2008/04/silverlight-on-rails.html?showComment=1207595880000#c8578415568738968663' title=''/><author><name>Josh</name><uri>http://www.blogger.com/profile/13666102861045517530</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://joshuamcharles.com/JoshWeb.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.jimmy.schementi.com/2008/04/silverlight-on-rails.html' ref='tag:blogger.com,1999:blog-5419182.post-4388683167068909358' source='http://www.blogger.com/feeds/5419182/posts/default/4388683167068909358' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1142534987'/></entry></feed>
