Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Form CRUD with Batman.js and Rails 3.2

branch: master

Merge pull request #1 from jasonlaxdal/master

I updated the Gemfile for your Batman CRUD repo
latest commit 590e6518ee
Zack Hubert authored
Octocat-spinner-32 app updated pagination May 22, 2012
Octocat-spinner-32 config updated pagination May 22, 2012
Octocat-spinner-32 db paginate results on a show page May 15, 2012
Octocat-spinner-32 doc init May 07, 2012
Octocat-spinner-32 lib init May 07, 2012
Octocat-spinner-32 log init May 07, 2012
Octocat-spinner-32 public init May 07, 2012
Octocat-spinner-32 script init May 07, 2012
Octocat-spinner-32 test switched to ams, added association includes May 09, 2012
Octocat-spinner-32 vendor init May 07, 2012
Octocat-spinner-32 .gitignore init May 07, 2012
Octocat-spinner-32 .rvmrc init May 07, 2012
Octocat-spinner-32 Gemfile Revised active_model_serializers gem repo path to current. February 11, 2013
Octocat-spinner-32 Gemfile.lock Revised active_model_serializers gem repo path to current. February 11, 2013
Octocat-spinner-32 README.md docs May 10, 2012
Octocat-spinner-32 Rakefile init May 07, 2012
Octocat-spinner-32 config.ru init May 07, 2012
README.md

Batman Rails Demo

Using Batman.js, evaluate the following:

  • Simple form CRUD
  • Routing of resources - nested, with nav, pagination
  • Associations - has_many, belongs_to
  • Rails idiom and integration - shouldn't be an impedance mismatch
  • Data binding - views change automatically when data does
  • View Composition - weak, strong...just get it done
  • No Framework Poison Pills - that would be bugs and things that would jeopardize a production app
  • HAML/Coffeescript Friendly

Implementation Notes:

  • Serialization of JSON is done via Active_Model_Serializers. Currently requires a "scope" (that is, current_user-like object), hence the anemic user inclusion.
  • Rails 3-style Responders don't play well with Batman validation (usually doesn't matter since you would have client side validators too), note the server-side controller implementation. Pagination also needed some changes in the controller.
  • Packaging of views for prod as per Rigel Group

Summary:

  • Batman makes a strong bid for "Client-side Rails" in my book. It was very easy to use, no rabbit holes, easy to debug, MVC that a Rails developer would recognize.
  • Delivered all the requirements above.
Something went wrong with that request. Please try again.