rails and backbone working together

Viewed 7310

I am just starting to look at MVC structure, first i looked at how backbone.js worked, and now I have just completed rails for zombies, by Code School. I know that I haven't delved too far into any of this, but I had a question to begin with.

Can you use these libraries together?

I have learned how to create models, views, etc in both, but when creating a real application do you use both backbone and rails?

If so...

When do you use a backbone.js model vs. a rails model?

Maybe I am just getting ahead of myself and need to keep practicing and doing tutorials but I couldn't seem to find anything directly on this.

Thanks!

3 Answers
Related