Good examples of applications combining rails 3 and scroll

I am trying to write a sproutcore interface for a rails 3.1 application that I am doing. I looked at sproutcore manuals, but I am interested to see real examples of using sproutcore together with rails 3 (.1).

I found two examples, but each of them is completely different:

  • A todo-app created using bulk_api : an interesting approach using a specific REST style to minimize traffic. But he suggests putting the sproutcore application in app/sproutcore, and it’s still a little unclear to me how it really hooks completely.
  • Travis-ci , which seems to be a very clean example, rails 3.1, for using sproutcore. This is not entirely clear to me yet, but all sproutcore js is cleanly stored inside app/assets/javascript/apps, and as far as I can tell, it application.htmljust loads js and provides a frame into which everything is loaded.

Do you know any other examples? How do you use sproutcore in your rails application?

+5
source share
2 answers

The method you describe is similar to how you integrate backbone.js into a rails application, and it seems to work very well

https://github.com/codebrew/backbone-rails

The highway is stored here

//JavaScripts//
//JavaScripts///
//JavaScripts///

script,

<script type="text/javascript">
  $(function() {
    // Blog is the app name
    window.router = new Blog.Routers.PostsRouter({posts: <%= @posts.to_json.html_safe -%>});
    Backbone.history.start();
  });
</script>

, sproutcore

+1
0

All Articles