Activate your free membership today | Log-in

Monday, July 14th, 2008

Interview with the Gears on Rails team

Category: Gears, JavaScript, Podcasts, Rails, Ruby

<p>With my Google hat on, I got to interview Michael Marcus and Rui Ma, two recent graduates from a masters program at NYU. They joined me to discuss Gears on Rails, their open source framework that makes it easier than ever to take a Rails code-base offline.

They take the approach of giving you a high level Ruby-ish way of developing your Rails app and having it work offline against local storage.

This means that you end up building actions like this:

RUBY:
    def create_local
     '
       post = Post.build(params("post"));
       Post.create_local(post);
       window.location.reload( false );
     '
    end

They build the local framework on the Jester framework that is a "JavaScript client for REST APIs that uses Rails conventions, and is inspired by Rails' own ActiveResource".

This means that you can write client side code like this:

JAVASCRIPT:
  1.  
  2. Resource.model("Twitter", {format: "json", prefix: "http://www.twitter.com", urls: {list: "/statuses/user_timeline/:username.json"}})
  3.  
  4. Twitter.find("all", {username: "bob"}, function(results) {
  5.   twitters = results
  6. });
  7.  

Listen to the audio interview directly (or subscribe via iTunes).

Related Content:

  • CodeGear readies Ruby on Rails IDE
    CodeGear, the developer tools unit of Borland Corp., announced a Ruby on Rails IDE for enterprise Web development. The Rails IDE, currently available...
  • CodeGear offers 3rdRail for Ruby
    CodeGear, the developer tools unit of Borland Corp., announced this week the general availability of 3rdRail, an integrated development environment...
  • Learn about Ruby on Rails programming
    Rails, as the combination of the Ruby language and the Rails developer framework is called by its coder legions, is easier to work with than Java. It...
  • Here comes Ajax on Rails
    Moving toward a convergence of Ajax development with Ruby on Rails, Aptana Inc. is including the Ruby Development Team project in its IDE for Ajax...
  • Hot skills: Ruby on Rails
    Skills for IT professionals: Ruby on...

Posted by Dion Almaer at 4:29 pm
1 Comment

+++--
3.1 rating from 17 votes

1 Comment »

Comments feed TrackBack URI

Great work! Jester is great for rails. If you like things like this, for the love of god, please checkout JavaScriptMVC

It has it’s own port of Jester that allows inheritance, and actual event delegation based controllers. It has everything you need to organize your JavaScript application.

Comment by JustinMeyer — July 17, 2008

Leave a comment

You must be logged in to post a comment.