我已经构建了一个使用materialize的普通(没有前端js框架)Rails应用程序。它在移动浏览器中运行良好,但我想使用PhoneGap(或其他必要的东西)将其包装到移动应用程序中。目前似乎没有关于如何做到这一点的当前指南。有谁可以请指点我如何做到这一点?
编辑:我应该使用rubymotion吗?学会使用和实施多长时间?
答案 0 :(得分:1)
If you go with Rubymotion, the only time you will spend on is getting Rubymotion set up and running.
Then you can pretty much grab a "hello world" tutorial (or any motion sample app) and add a few lines that point to your site. For iOS it looks like this:
request = NSURLRequest.requestWithURL(rails_app_url)
view.loadRequest(request)