开发者

ActiveRecord using Safari Sqlite

开发者 https://www.devze.com 2022-12-31 09:15 出处:网络
I am build a webapp for iphone using Phonegap, and I want to create a DB on the device and not开发者_运维知识库 on my server.

I am build a webapp for iphone using Phonegap, and I want to create a DB on the device and not开发者_运维知识库 on my server. I've seen that there is a Safari Sqlite database, but I haven't been able to find any information about using this database with active record.

Does someone knows how to do so?

Best, Gregory


You can't access it because your code is executed on the server and not in the browser so you won't be able to use ActiveRecord with the browser`s database.


Rails has nothing to do with client-side database. If you want to build an application using client-side database, you need to build your application in JavaScript.

I think you should take a look an JavaScript frameworks, like SproutCore.

0

精彩评论

暂无评论...
验证码 换一张
取 消