ruby-on-rails - Sproutcore 芯和 rails : where does the sproutcore application live within rails' directory structure?

标签 ruby-on-rails sproutcore

我有一个可用的 Rails 3 应用程序服务纯旧 HTML CRUD,我想为它构建一个 sproutcore 客户端。我(认为)我了解 Rails 和 Sproutcore,但我有一个令人尴尬的愚蠢新手问题:

我应该将 sproutcore 应用放在 Rails 项目结构中的什么位置?

具体来说,鉴于我有:

myapp/
    app/
    ...
    public/
    ...

我要说:

sc-init SOMETHING

东西会是什么? (myapp?公开?) sproutcore 应用程序 html 从哪里来? 为那个(路线?)提供服务的最佳实践是什么? sc-server 究竟做了哪些我不能用 WebBrick/Mongrel 等做的事情?

非常感谢!

最佳答案

sproutcore todos 教程最后有一个部分,其中将应用程序插入多个“后端”,包括 Rails3。 Rails3 位在这里:http://wiki.sproutcore.com/w/page/Todos+06-Building+with+Rails+3

关于ruby-on-rails - Sproutcore 芯和 rails : where does the sproutcore application live within rails' directory structure?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3971447/

相关文章:

mysql - 将 Sproutcore 应用程序连接到 MySQL 数据库

ruby-on-rails - 多个关联记录类型的 Rails 数据库设计

mysql - Rails 单元测试中的枚举

javascript - TextFieldView 似乎没有加载

javascript - 如何将 SC.Record 的 SC.Record.toMany() 数据绑定(bind)到 ListView?

sproutcore - Sproutcore数据源并创建具有关系的新记录

ruby-on-rails - "bin/rails: No such file or directory"w/Heroku 上的 Ruby 2 和 Rails 4

mysql - 在 Rails 中迭代执行结果的结果

ruby-on-rails - 什么是使用 robots.txt 的正确方法