I started in webprogramming with rails since 2 month, and recently towerjs.
I have an existing rails 3.1 backend, and i would use towerjs as the frontend. that means, rails have an existing logic and db.
Could i use towerjs on the browser side, to get and set data with rails into the db?
my present idea is to start an rails and towerjs server, and both communicate together with json. but i don't now how i could implement these!
Tower is tightly coupled for running code on the client and server.
You would be better off looking at something like backbone.js because it is indifferent to your server side setup.
I am currently porting a rails app to a single page app. After much hacking, I settled on backbone for the client, node.js/express for the server, and refactored all the rails models to a ruby/grape API. The node server proxies requests to the grape api using the awesome request npm module. Very happy so far.
backbone: http://documentcloud.github.com/backbone/
grape: https://github.com/intridea/grape