Rather, from the original question, the problem as I see it is there's a misunderstanding of what has to be done in order to solve the problem.
What the model does in the back-end doesn't have to be replicated in the view. Possibly what you'll have is, say, deleting an instance in JS should remove a row in a <table>. That's nothing the actual Ruby class should even care about. And take a look at backbone.js. On Fri, Feb 11, 2011 at 3:46 PM, Ritchie Young <ritch...@gmail.com> wrote: > This is where technologies like Google Web Toolkit (GWT) win. By > compiling Java bytecodes into Javascript it becomes possible to simply > code everything in Java. The downside? You have to write everything in > Java :D > > There were some efforts (http://www.ntecs.de/projects/rubyjs/README) > to compile Ruby code into JS but people they were regarded more as > experiments and people didn't seem to get too interested in using them > seriously. Personally, I think it would be a very good thing if I > could simply write Ruby for both client and server. I've never been > able to wrap my head around Javascript's prototype based object model. > > /Ritchie > > On Fri, Feb 11, 2011 at 8:06 AM, Matthieu Stone > <matthieu.st...@gmail.com> wrote: > > Hello, > > I've got a lot of well tested business logic sitting in my models :: but > > every time I want to use it, I need to hit my servers. > > So scaling this is a real problem - particularly if I want do some fancy > > screen updates based upon streaming data and run some calculations when > new > > data arrives. > > I'd rather not duplicate my logic if I can avoid it. > > Anyone know of a fancy way to create Javascript versions of my model > logic, > > or achieve something similar? > > rgds, > > - matt. > > > > -- > > You received this message because you are subscribed to the Google Groups > > "Ruby or Rails Oceania" group. > > To post to this group, send email to rails-oceania@googlegroups.com. > > To unsubscribe from this group, send email to > > rails-oceania+unsubscr...@googlegroups.com. > > For more options, visit this group at > > http://groups.google.com/group/rails-oceania?hl=en. > > > > -- > You received this message because you are subscribed to the Google Groups > "Ruby or Rails Oceania" group. > To post to this group, send email to rails-oceania@googlegroups.com. > To unsubscribe from this group, send email to > rails-oceania+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/rails-oceania?hl=en. > > -- http://awesomebydesign.com -- You received this message because you are subscribed to the Google Groups "Ruby or Rails Oceania" group. To post to this group, send email to rails-oceania@googlegroups.com. To unsubscribe from this group, send email to rails-oceania+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en.